Commit 39dd0197 authored by Dimitris Kardarakos's avatar Dimitris Kardarakos

Properly save suspended notifications before quitting

parent 11daad97
Pipeline #6330 passed with stage
in 6 minutes and 37 seconds
......@@ -118,13 +118,6 @@ void CalAlarmClient::checkAlarms()
qDebug() << "\ncheckAlarms:\tWaiting for" << mCheckInterval << " seconds";
}
void CalAlarmClient::quitCalindac()
{
flushSuspendedToConfig();
saveLastCheckTime();
quit();
}
void CalAlarmClient::saveLastCheckTime()
{
KConfigGroup generalGroup(KSharedConfig::openConfig(), "General");
......@@ -148,6 +141,8 @@ void CalAlarmClient::saveSuspendSeconds()
void CalAlarmClient::quit()
{
flushSuspendedToConfig();
saveLastCheckTime();
qDebug("\nquit");
qApp->quit();
}
......
......@@ -67,7 +67,6 @@ public Q_SLOTS:
QStringList dumpAlarms() const;
private:
void quitCalindac();
QString alarmText(const QString& uid) const;
void checkAlarms();
void saveLastCheckTime();
......
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