diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2013-11-23 03:06:19 +0400 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2013-11-25 18:34:16 +0400 |
commit | f554cca3d60f312928008451890d3ac797617e7f (patch) | |
tree | fef84d931c913d4066044a159ab5787732024492 /src | |
parent | 67132326d2b4733a9926a5f3ae347c21ee8441fe (diff) |
Fix initial state of quota info class.
Diffstat (limited to 'src')
-rw-r--r-- | src/mirall/quotainfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mirall/quotainfo.cpp b/src/mirall/quotainfo.cpp index 3a9994ec9..4b0c5f4f8 100644 --- a/src/mirall/quotainfo.cpp +++ b/src/mirall/quotainfo.cpp @@ -17,6 +17,7 @@ #include "creds/abstractcredentials.h" #include <QTimer> +#include <QDebug> namespace Mirall { @@ -28,6 +29,7 @@ static const int initialTimeT = 1*1000; QuotaInfo::QuotaInfo(QObject *parent) : QObject(parent) + , _account(AccountManager::instance()->account()) , _lastQuotaTotalBytes(0) , _lastQuotaUsedBytes(0) , _refreshTimer(new QTimer(this)) @@ -49,7 +51,7 @@ void QuotaInfo::slotAccountChanged(Account *newAccount, Account *oldAccount) void QuotaInfo::slotOnlineStateChanged(bool online) { if (online) { - _refreshTimer->start(); + slotCheckQuota(); } else { _refreshTimer->stop(); } |