summaryrefslogtreecommitdiff
path: root/src/gui/windows/whoisonline.cpp
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/gui/windows/whoisonline.cpp
parent4305bda4ccef81adabc6f4f23ed41c157256a0c1 (diff)
downloadmv-a5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c.tar.gz
mv-a5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c.tar.bz2
mv-a5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c.tar.xz
mv-a5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c.zip
Dont clean online list if curl error happened (legacy server only)
Diffstat (limited to 'src/gui/windows/whoisonline.cpp')
-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"));