[Pkg-owncloud-commits] [owncloud-client] 462/484: AccountSettings: Update the visibility of the add account button.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Dec 16 00:38:22 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 770ad54229656245347a42b588802a0b67a1a29f
Author: Klaas Freitag <freitag at owncloud.com>
Date: Wed Dec 2 16:33:24 2015 +0100
AccountSettings: Update the visibility of the add account button.
That fixes #4238
---
src/gui/accountsettings.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp
index 275ac91..abd0670 100644
--- a/src/gui/accountsettings.cpp
+++ b/src/gui/accountsettings.cpp
@@ -150,6 +150,8 @@ void AccountSettings::createAccountToolbox()
ui->_accountToolbox->setText(tr("Account") + QLatin1Char(' '));
ui->_accountToolbox->setMenu(menu);
ui->_accountToolbox->setPopupMode(QToolButton::InstantPopup);
+
+ slotAccountAdded(_accountState);
}
void AccountSettings::slotOpenAccountWizard()
@@ -665,9 +667,11 @@ void AccountSettings::slotAccountAdded(AccountState*)
{
// if the theme is limited to single account, the button must hide if
// there is already one account.
- if( AccountManager::instance()->accounts().size() > 1 &&
- !Theme::instance()->multiAccount() ) {
+ int s = AccountManager::instance()->accounts().size();
+ if( s > 0 && !Theme::instance()->multiAccount() ) {
_addAccountAction->setVisible(false);
+ } else {
+ _addAccountAction->setVisible(true);
}
}
--
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