[Pkg-owncloud-commits] [owncloud-client] 62/89: Start timer only after the last quota request was answered

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Dec 14 01:02:37 UTC 2013


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 76a60e889c59a4ed7861f3a715d2a68edabdd08c
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Wed Dec 11 13:46:54 2013 +0100

    Start timer only after the last quota request was answered
---
 src/mirall/quotainfo.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mirall/quotainfo.cpp b/src/mirall/quotainfo.cpp
index edcff75..e4d7022 100644
--- a/src/mirall/quotainfo.cpp
+++ b/src/mirall/quotainfo.cpp
@@ -63,7 +63,6 @@ void QuotaInfo::slotCheckQuota()
         CheckQuotaJob *job = new CheckQuotaJob(_account, "/", this);
         connect(job, SIGNAL(quotaRetrieved(qint64,qint64)), SLOT(slotUpdateLastQuota(qint64,qint64)));
         job->start();
-        _refreshTimer->start(defaultIntervalT);
     } else {
         _lastQuotaTotalBytes = 0;
         _lastQuotaUsedBytes = 0;
@@ -76,6 +75,7 @@ void QuotaInfo::slotUpdateLastQuota(qint64 total, qint64 used)
     _lastQuotaTotalBytes = total;
     _lastQuotaUsedBytes = used;
     emit quotaUpdated(total, used);
+    _refreshTimer->start(defaultIntervalT);
 }
 
 }

-- 
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