summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-30 12:22:49 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-30 12:51:47 (GMT)
commit324a34abf2a97b3db31b30263b0c58c7a9f17400 (patch)
tree5e93cc0a4c1c0eea204f5470b7b4718d9424b026
parentb0d10ae718080863c0d1eb42bcab19e25a673dff (diff)
Disable remove button when we don't have account
-rw-r--r--resources/google/common/googlesettingsdialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/resources/google/common/googlesettingsdialog.cpp b/resources/google/common/googlesettingsdialog.cpp
index 2bcbc73..bdc94cb 100644
--- a/resources/google/common/googlesettingsdialog.cpp
+++ b/resources/google/common/googlesettingsdialog.cpp
@@ -150,6 +150,7 @@ void GoogleSettingsDialog::reloadAccounts()
disconnect(m_accComboBox, SIGNAL(currentIndexChanged(QString)),
this, SIGNAL(currentAccountChanged(QString)));
+ m_removeAccButton->setEnabled(m_accComboBox->count() > 0);
Q_EMIT currentAccountChanged(m_accComboBox->currentText());
}