diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2013-11-27 17:11:10 +0400 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2013-11-27 17:11:10 +0400 |
commit | 310278f58025441a986c7885b008f208adde02d8 (patch) | |
tree | 85133f8782b43701cd128a943c992eb6c7dadc97 /src | |
parent | 59072a81f14efc3f33b0e70f30c40e23cd7ec545 (diff) |
Account: Swap connected and disconnected state
Also, avoid full integer enumeration
Diffstat (limited to 'src')
-rw-r--r-- | src/mirall/account.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mirall/account.h b/src/mirall/account.h index de6f1169d..bcd910d9f 100644 --- a/src/mirall/account.h +++ b/src/mirall/account.h @@ -64,9 +64,9 @@ public: class Account : public QObject { Q_OBJECT public: - enum State { Connected = 0, /// account is online - Disconnected = 1, /// no network connection - SignedOut = 2 /// Disconnected + credential token has been discarded + enum State { Disconnected = 0, /// no network connection + Connected, /// account is online + SignedOut /// Disconnected + credential token has been discarded }; static QString davPath() { return "remote.php/webdav/"; } |