@@ -517,7 +517,9 @@ Item {
518 // Stop the timer to avoid displaying the power dialog when display
518 // Stop the timer to avoid displaying the power dialog when display
519 // state is changed.
519 // state is changed.
520+ if (status == Powerd.Off) {
520− dialogs.onPowerKeyReleased();
521+ dialogs.onPowerKeyReleased();