[Pkg-owncloud-commits] [owncloud-client] 144/175: AccountState: do not change the state when we stay connected
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Aug 8 10:36:37 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 2c6c21d7532f0cbba4b768fde47810f6673ed931
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Mon Jun 8 12:14:37 2015 +0200
AccountState: do not change the state when we stay connected
This would cause a full sync every 30 seconds.
---
src/gui/accountstate.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp
index 9588cd0..afd4b10 100644
--- a/src/gui/accountstate.cpp
+++ b/src/gui/accountstate.cpp
@@ -208,6 +208,7 @@ void AccountState::slotConnectionValidatorResult(ConnectionValidator::Status sta
return;
}
+ auto oldStatus = _connectionStatus;
if (_connectionStatus != status) {
qDebug() << "AccountState connection status change: "
<< connectionStatusString(_connectionStatus) << "->"
@@ -219,7 +220,9 @@ void AccountState::slotConnectionValidatorResult(ConnectionValidator::Status sta
switch (status)
{
case ConnectionValidator::Connected:
- setState(Connected);
+ if (oldStatus != ConnectionValidator::Connected) {
+ setState(Connected);
+ }
break;
case ConnectionValidator::Undefined:
case ConnectionValidator::NotConfigured:
--
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