[Pkg-owncloud-commits] [owncloud-client] 42/498: Fix bad connect/disconnects.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 3cc2e1a968712747e6fe802bfa0b5a7d83331733
Author: Christian Kamm <kamm at incasoftware.de>
Date:   Thu Apr 23 14:24:54 2015 +0200

    Fix bad connect/disconnects.
---
 src/gui/application.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/gui/application.cpp b/src/gui/application.cpp
index a9aab1e..80c95b7 100644
--- a/src/gui/application.cpp
+++ b/src/gui/application.cpp
@@ -212,10 +212,12 @@ void Application::slotLogout()
 
 void Application::slotAccountStateRemoved(AccountState *accountState)
 {
-    disconnect(accountState, SIGNAL(stateChanged(int)), _gui, SLOT(slotAccountStateChanged()));
     disconnect(accountState, SIGNAL(stateChanged(int)), this, SLOT(slotAccountStateChanged(int)));
-    connect(accountState->quotaInfo(), SIGNAL(quotaUpdated(qint64,qint64)),
-            _gui, SLOT(slotRefreshQuotaDisplay(qint64,qint64)));
+    if (_gui) {
+        disconnect(accountState, SIGNAL(stateChanged(int)), _gui, SLOT(slotAccountStateChanged()));
+        disconnect(accountState->quotaInfo(), SIGNAL(quotaUpdated(qint64,qint64)),
+                   _gui, SLOT(slotRefreshQuotaDisplay(qint64,qint64)));
+    }
 }
 
 void Application::slotAccountStateAdded(AccountState *accountState)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list