diff --git a/apps/suspend_timer.cpp b/apps/suspend_timer.cpp index 942620a41..4984be1cf 100644 --- a/apps/suspend_timer.cpp +++ b/apps/suspend_timer.cpp @@ -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; }