Index: sources/gui/qml/PowerItem.qml =================================================================== diff -u -r213b9fed4fc569eb85a0647bde9869a3c82c0db3 -r16028b057650dab9f5a2f27eaba5c9618c29dd9a --- sources/gui/qml/PowerItem.qml (.../PowerItem.qml) (revision 213b9fed4fc569eb85a0647bde9869a3c82c0db3) +++ sources/gui/qml/PowerItem.qml (.../PowerItem.qml) (revision 16028b057650dab9f5a2f27eaba5c9618c29dd9a) @@ -56,7 +56,6 @@ onAccepted: { if ( ! vConfirm.isReject ) { vConfirm.doConfirm( true ) - shutdownWait() } } @@ -89,13 +88,19 @@ ) } - function shutdownWait() { - _autoHideInfo.showDialog ( - qsTr("System is shutting down"), - 5000 // if any error happens and shutdown is not successful then after 5 seconds dialog hides. - ) + // ---- 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: vConfirm function onIsRejectChanged ( vValue ) { _powerOffDialog.footerUpdate()