If a timer is active and we start it, it will restart

No need to check if it's active and stop it first, according to the
documentation.
This commit is contained in:
Aleix Pol 2014-07-11 19:15:06 +02:00
parent 804a0d34da
commit e008a5d7d4

View File

@ -388,10 +388,6 @@ void AppletPrivate::scheduleModificationNotification()
// modificationsTimer is not allocated until we get our notice of being started
if (modificationsTimer) {
// schedule a save
if (modificationsTimer->isActive()) {
modificationsTimer->stop();
}
modificationsTimer->start(1000, q);
}
}