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:
parent
804a0d34da
commit
e008a5d7d4
@ -388,10 +388,6 @@ void AppletPrivate::scheduleModificationNotification()
|
|||||||
// modificationsTimer is not allocated until we get our notice of being started
|
// modificationsTimer is not allocated until we get our notice of being started
|
||||||
if (modificationsTimer) {
|
if (modificationsTimer) {
|
||||||
// schedule a save
|
// schedule a save
|
||||||
if (modificationsTimer->isActive()) {
|
|
||||||
modificationsTimer->stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
modificationsTimer->start(1000, q);
|
modificationsTimer->start(1000, q);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user