Commit 06d5f94f authored by Allen Winter's avatar Allen Winter
Browse files

korgac/alarmdialog.cpp - fix resetting suspend units

parent 5f1be6ec
...@@ -166,7 +166,7 @@ AlarmDialog::AlarmDialog(const Akonadi::ETMCalendar::Ptr &calendar, QWidget *par ...@@ -166,7 +166,7 @@ AlarmDialog::AlarmDialog(const Akonadi::ETMCalendar::Ptr &calendar, QWidget *par
defSuspendVal = generalConfig.readEntry("DefaultSuspendValue", defSuspendVal); defSuspendVal = generalConfig.readEntry("DefaultSuspendValue", defSuspendVal);
int suspendVal = generalConfig.readEntry("SuspendValue", defSuspendVal); int suspendVal = generalConfig.readEntry("SuspendValue", defSuspendVal);
defSuspendUnit = generalConfig.readEntry("SuspendUnit", defSuspendUnit); defSuspendUnit = generalConfig.readEntry("DefaultSuspendUnit", defSuspendUnit);
SuspendUnit suspendUnit = static_cast<SuspendUnit>(generalConfig.readEntry("SuspendUnit", SuspendUnit suspendUnit = static_cast<SuspendUnit>(generalConfig.readEntry("SuspendUnit",
defSuspendUnit)); defSuspendUnit));
...@@ -847,7 +847,6 @@ void AlarmDialog::slotDBusNotificationsPropertiesChanged( ...@@ -847,7 +847,6 @@ void AlarmDialog::slotDBusNotificationsPropertiesChanged(
} }
} }
void AlarmDialog::slotSave() void AlarmDialog::slotSave()
{ {
KSharedConfig::Ptr config = KSharedConfig::openConfig(); KSharedConfig::Ptr config = KSharedConfig::openConfig();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment