Commit ba85b4e1 authored by Han Young's avatar Han Young 💬

reschedule after remove alarm

parent e6976a6f
......@@ -145,7 +145,7 @@ void AlarmModel::scheduleAlarm()
}
// schedule wakeup and store cookie
QDBusReply<uint> reply = m_interface->call("scheduleWakeup", "org.kde.kclock", QDBusObjectPath("/alarmswakeup"), (qulonglong) minTime);
QDBusReply<uint> reply = m_interface->call("scheduleWakeup", "org.kde.kclock", QDBusObjectPath("/alarmswakeup"), (qulonglong)minTime);
m_cookie = reply.value();
if (!reply.isValid()) {
......@@ -304,6 +304,7 @@ void AlarmModel::remove(int index)
config->sync();
emit endRemoveRows();
scheduleAlarm();
}
void AlarmModel::updateUi()
......
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