Activities: Only emit debug when actually refreshing
authorMarkus Goetz <markus@woboq.com>
Mon, 23 Nov 2015 18:08:28 +0000 (19:08 +0100)
committerMarkus Goetz <markus@woboq.com>
Mon, 23 Nov 2015 20:48:25 +0000 (21:48 +0100)
src/gui/activitywidget.cpp
src/gui/settingsdialog.cpp
src/gui/settingsdialogmac.cpp

index ab9c1e5d843a29549ff4d400cc7b1ead81f41d2b..67f8db90daa0f02ae76cffcb5e05a9fde272c19e 100644 (file)
@@ -452,6 +452,7 @@ void ActivitySettings::slotRemoveAccount( AccountState *ptr )
 void ActivitySettings::slotRefresh( AccountState* ptr )
 {
     if( ptr && ptr->isConnected() && isVisible()) {
+        qDebug() << "Refreshing Activity list for " << ptr->account()->displayName();
         _progressIndicator->startAnimation();
         _activityWidget->slotRefresh(ptr);
     }
index d329e03bf5ff75da583519f0c8a8b94b68faac06..68d71ebbc551f13b0412456563b7c76cfb35b2f5 100644 (file)
@@ -309,7 +309,6 @@ void SettingsDialog::addActionToToolBar(QAction *action) {
 void SettingsDialog::slotRefreshActivity( AccountState* accountState )
 {
     if (accountState) {
-        qDebug() << "Refreshing Activity list for " << accountState->account()->displayName();
         _activitySettings->slotRefresh(accountState);
     }
 }
index 51a0094d534cce6dc3da2c1ea19a4182cf0f983e..997c1f975a90fa3881ef37f73ac412fd5d40882b 100644 (file)
@@ -142,7 +142,6 @@ void SettingsDialogMac::accountRemoved(AccountState *s)
 void SettingsDialogMac::slotRefreshActivity( AccountState* accountState )
 {
     if (accountState) {
-        qDebug() << "Refreshing Activity list for " << accountState->account()->displayName();
         _activitySettings->slotRefresh(accountState);
     }
 }