[Pkg-owncloud-commits] [owncloud-client] 78/89: Fix button states in account widget
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Dec 14 01:02:39 UTC 2013
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 9bf15178f90ace641003ae1189a14dd7e3a16939
Author: Klaas Freitag <freitag at owncloud.com>
Date: Thu Dec 12 16:38:45 2013 +0100
Fix button states in account widget
---
src/mirall/accountsettings.cpp | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/mirall/accountsettings.cpp b/src/mirall/accountsettings.cpp
index b0cf256..4796a42 100644
--- a/src/mirall/accountsettings.cpp
+++ b/src/mirall/accountsettings.cpp
@@ -121,7 +121,7 @@ void AccountSettings::slotFolderActivated( const QModelIndex& indx )
ui->_buttonAdd->setVisible(!haveFolders);
} else {
ui->_buttonAdd->setVisible(true);
- ui->_buttonAdd->setEnabled( state );
+ ui->_buttonAdd->setEnabled( true );
}
ui->_buttonEnable->setEnabled( state );
@@ -207,10 +207,8 @@ void AccountSettings::slotAddFolder( Folder *folder )
void AccountSettings::slotButtonsSetEnabled()
{
QModelIndex selected = ui->_folderList->currentIndex();
- bool isSelected = selected.isValid();
- if (isSelected) {
- slotFolderActivated(selected);
- }
+
+ slotFolderActivated(selected);
}
void AccountSettings::setGeneralErrors( const QStringList& errors )
@@ -316,6 +314,7 @@ void AccountSettings::slotRemoveCurrentFolder()
}
}
}
+
void AccountSettings::slotResetCurrentFolder()
{
QModelIndex selected = ui->_folderList->selectionModel()->currentIndex();
--
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