Account UI: Fix log out button text #4578

This commit is contained in:
Christian Kamm 2016-03-29 12:14:53 +02:00
parent 80bd86a305
commit ffbd5df25f

View file

@ -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"));
}
}
}