From a5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Jan 2017 00:20:07 +0300 Subject: Dont clean online list if curl error happened (legacy server only) --- src/gui/windows/whoisonline.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') 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")); -- cgit v1.2.3-70-g09d2