From 5809c2403e414a5ee9d17ca206557bde62ca21a1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Feb 2014 12:11:20 +0300 Subject: Fix upload commands showing to non general tab. --- src/commands.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2