[Pkg-owncloud-commits] [owncloud-client] 223/470: Account UI: Fix log out button text #4578
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu May 12 16:25:06 UTC 2016
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 ffbd5df25f6e09a8cb886a3b129f9811eb36672d
Author: Christian Kamm <mail at ckamm.de>
Date: Tue Mar 29 12:14:53 2016 +0200
Account UI: Fix log out button text #4578
---
src/gui/accountsettings.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp
index 383751b..efc703f 100644
--- a/src/gui/accountsettings.cpp
+++ b/src/gui/accountsettings.cpp
@@ -544,11 +544,10 @@ void AccountSettings::slotAccountStateChanged(int state)
}
/* set the correct label for the Account toolbox button */
if( _accountState ) {
- bool isConnected = _accountState->isConnected();
- if( isConnected ) {
- _toggleSignInOutAction->setText(tr("Log out"));
- } else {
+ if( _accountState->isSignedOut() ) {
_toggleSignInOutAction->setText(tr("Log in"));
+ } else {
+ _toggleSignInOutAction->setText(tr("Log out"));
}
}
}
--
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