summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-19 00:20:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-19 00:20:07 +0300
commita5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c (patch)
treeb90c82e16217cf863fa0d295265e514185deea5d /src
parent4305bda4ccef81adabc6f4f23ed41c157256a0c1 (diff)
downloadManaVerse-a5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c.tar.gz
ManaVerse-a5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c.tar.bz2
ManaVerse-a5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c.tar.xz
ManaVerse-a5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c.zip
Dont clean online list if curl error happened (legacy server only)
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/whoisonline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp
index cf999ae24..bfc72ca3b 100644
--- a/src/gui/windows/whoisonline.cpp
+++ b/src/gui/windows/whoisonline.cpp
@@ -667,9 +667,9 @@ void WhoIsOnline::slowLogic()
switch (mDownloadStatus)
{
case UPDATE_ERROR:
- mBrowserBox->clearRows();
- mBrowserBox->addRow("##1Failed to fetch the online list!");
- mBrowserBox->addRow(mCurlError);
+ logger->assertLog("Failed to fetch the online list:");
+ if (mCurlError)
+ logger->assertLog("%s", mCurlError);
mDownloadStatus = UPDATE_COMPLETE;
// TRANSLATORS: who is online window name
setCaption(_("Who Is Online - error"));