summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 93e07b0f8..d4134c560 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1323,7 +1323,8 @@ static int uploadUpdate(void *ptr,
static void uploadFile(const std::string &str,
const std::string &fileName,
- const std::string &addStr)
+ const std::string &addStr,
+ ChatTab *const tab)
{
UploadChatInfo *const info = new UploadChatInfo();
Net::Download *const upload = new Net::Download(info,
@@ -1333,6 +1334,7 @@ static void uploadFile(const std::string &str,
info->upload = upload;
info->text = str;
info->addStr = addStr;
+ info->tab = tab;
upload->setFile(fileName);
upload->start();
}
@@ -1341,21 +1343,24 @@ impHandler0(uploadConfig)
{
uploadFile(_("Uploaded config into:"),
config.getFileName(),
- "?xml");
+ "?xml",
+ tab);
}
impHandler0(uploadServerConfig)
{
uploadFile(_("Uploaded server config into:"),
serverConfig.getFileName(),
- "?xml");
+ "?xml",
+ tab);
}
impHandler0(uploadLog)
{
uploadFile(_("Uploaded log into:"),
client->getLogFileName(),
- "?txt");
+ "?txt",
+ tab);
}
impHandler0(testsdlfont)