Index: sources/gui/qml/PowerItem.qml =================================================================== diff -u -r981e534e5b3174aab7ec47de3b1ead1511dbb6ef -r787e08545efa12ddc8383de8b973ab9762de0853 --- sources/gui/qml/PowerItem.qml (.../PowerItem.qml) (revision 981e534e5b3174aab7ec47de3b1ead1511dbb6ef) +++ sources/gui/qml/PowerItem.qml (.../PowerItem.qml) (revision 787e08545efa12ddc8383de8b973ab9762de0853) @@ -81,6 +81,11 @@ _alarmItem.alarmMaximize() } + function cancel() { + _powerOffDialog.close() + if ( vConfirm.needConfirm ) vConfirm.doConfirm( false ) + } + function reject() { // the power off is the only confirm has separate reject dialog, because the button is not only on UI and is HW as well. _autoHideInfo.showDialog( qsTr("Cannot shutdown during 'Treatment'"), // '%1').arg()