summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-30 12:22:19 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-30 12:51:47 (GMT)
commitb0d10ae718080863c0d1eb42bcab19e25a673dff (patch)
tree99d79e6747f2e114088f264d6454aa2abe66b125
parent7f08c8a5d25782829df8acedbc28f6d07951446a (diff)
It we don't have account clear listbox (for example after removing last
account)
-rw-r--r--resources/google/calendar/settingsdialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/resources/google/calendar/settingsdialog.cpp b/resources/google/calendar/settingsdialog.cpp
index bccd4b1..c9af5bf 100644
--- a/resources/google/calendar/settingsdialog.cpp
+++ b/resources/google/calendar/settingsdialog.cpp
@@ -136,6 +136,10 @@ void SettingsDialog::saveSettings()
void SettingsDialog::slotCurrentAccountChanged(const QString &accountName)
{
if (accountName.isEmpty()) {
+ m_taskListsBox->setDisabled(true);
+ m_taskListsList->clear();
+ m_calendarsBox->setDisabled(true);
+ m_calendarsList->clear();
return;
}