[apps] Fix SuspendTimer::Fire that caused two suspensions

This commit is contained in:
Léa Saviot
2018-12-12 11:28:28 +01:00
committed by EmilieNumworks
parent ce1cdaacc3
commit f6861e4301

View File

@@ -8,7 +8,9 @@ SuspendTimer::SuspendTimer(AppsContainer * container) :
}
bool SuspendTimer::fire() {
/* We could just call m_container->suspend(), but we want to notify all
* responders in the responder chain that the calculator will be switched off,
* so we use an event to switch off the calculator. */
m_container->dispatchEvent(Ion::Events::OnOff);
m_container->suspend();
return false;
}