[Pkg-owncloud-commits] [owncloud-client] 111/484: Account Settings: clear the focus of the "Sign In" button when clicked
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:23 UTC 2015
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 674b6f237307286c2b2872eba1faceb237f5e8c9
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Tue Oct 20 13:56:35 2015 +0200
Account Settings: clear the focus of the "Sign In" button when clicked
So that the focus does not go to the "Remove Account" button instead
which would be wierd
---
src/gui/accountsettings.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp
index 2df2060..86d2546 100644
--- a/src/gui/accountsettings.cpp
+++ b/src/gui/accountsettings.cpp
@@ -476,6 +476,11 @@ void AccountSettings::slotAccountStateChanged(int state)
serverWithUser = tr("%1 as <i>%2</i>").arg(server, cred->user());
}
+ if (state != AccountState::SignedOut && ui->signInButton->hasFocus()) {
+ // The button is about to be hidden, clear the focus so the focus don't go to the
+ // "remove account" button
+ ui->signInButton->clearFocus();
+ }
ui->signInButton->setVisible(state == AccountState::SignedOut);
if (state == AccountState::Connected) {
showConnectionLabel( tr("Connected to %1.").arg(serverWithUser) );
--
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