Index: sources/gui/qml/AlarmItem.qml =================================================================== diff -u -r79a6cfcb10472261f3ec26eaf0baf6f1245cd311 -r13e65c3d271d503c2e2e2f1f20736652c470f8cc --- sources/gui/qml/AlarmItem.qml (.../AlarmItem.qml) (revision 79a6cfcb10472261f3ec26eaf0baf6f1245cd311) +++ sources/gui/qml/AlarmItem.qml (.../AlarmItem.qml) (revision 13e65c3d271d503c2e2e2f1f20736652c470f8cc) @@ -52,6 +52,12 @@ // Alarms dialog/bar navigation handling ----- vvvvv ----- function alarmMinimize() { + // The has alarm check has been added here to let other components call this function, + // without worrying about the alarmDialog popoing up without an alarm present. + // Look at the PowerItem as an example. + if ( ! vAlarmStatus.hasAlarm ) return + + _alarmDialog .visible = false _alarmListDialog.visible = false _alarmBar .visible = true @@ -60,7 +66,7 @@ // The has alarm check has been added here to let other components call this function, // without worrying about the alarmDialog popoing up without an alarm present. // Look at the PowerItem as an example. - if ( ! vAlarmStatus.hasAlarm ) return; + if ( ! vAlarmStatus.hasAlarm ) return if ( _root._DEBUG_DISABLE_MAXIMIZE_ ) { alarmMinimize()