Index: sources/gui/qml/PowerItem.qml =================================================================== diff -u -r16028b057650dab9f5a2f27eaba5c9618c29dd9a -r5ed84841f5852381b2e36328c0aeca7bc97b9c03 --- sources/gui/qml/PowerItem.qml (.../PowerItem.qml) (revision 16028b057650dab9f5a2f27eaba5c9618c29dd9a) +++ sources/gui/qml/PowerItem.qml (.../PowerItem.qml) (revision 5ed84841f5852381b2e36328c0aeca7bc97b9c03) @@ -89,18 +89,18 @@ } // ---- Connections - Connections { target: _GuiView - function onDidActionReceive( vAction, vData ) { - switch(vAction) { - case GuiActions.ID_ShuttingDown: - _autoHideInfo.showDialog ( - qsTr("System is shutting down"), - 5000 // if any error happens and shutdown is not successful then after 5 seconds dialog hides. - ) - break; - } - } - } +// Connections { target: _GuiView +// function onDidActionReceive( vAction, vData ) { +// switch(vAction) { +// case GuiActions.ID_ShuttingDown: +// _autoHideInfo.showDialog ( +// qsTr("System is shutting down"), +// 5000 // if any error happens and shutdown is not successful then after 5 seconds dialog hides. +// ) +// break; +// } +// } +// } Connections { target: vConfirm function onIsRejectChanged ( vValue ) { _powerOffDialog.footerUpdate() @@ -112,6 +112,13 @@ else close () } + function onPowerOffTriggered ( vValue ) { + _autoHideInfo.showDialog ( + qsTr("System is shutting down"), + 5000 // if any error happens and shutdown is not successful then after 5 seconds dialog hides. + ) + } + function onAdjustmentTriggered ( vValue ) { // DEBUG: // console.debug('\n' +