Index: sources/view/confirm/VConfirm.cpp =================================================================== diff -u -rd95ed86d997208024ec79422e350a86a2c52fd85 -r5ed84841f5852381b2e36328c0aeca7bc97b9c03 --- sources/view/confirm/VConfirm.cpp (.../VConfirm.cpp) (revision d95ed86d997208024ec79422e350a86a2c52fd85) +++ sources/view/confirm/VConfirm.cpp (.../VConfirm.cpp) (revision 5ed84841f5852381b2e36328c0aeca7bc97b9c03) @@ -26,8 +26,8 @@ */ void View::VConfirm::initConnections() { ACTION_VIEW_CONNECTION(DuetConfirmTDiData ); + ACTION_VIEW_CONNECTION(PowerOffData ); ACTION_VIEW_CONNECTION(SettingsData ); - ADJUST_VIEW_CONNECTION(DuetConfirmUIrData ); } @@ -109,6 +109,13 @@ // DEBUG: qDebug() << _id << _command << adjustment_Reason() << _title << _message << _isReject; } +void View::VConfirm::onActionReceive(const PowerOffData &) +{ + // *** has to be the last to let the information to be set and then emit the signal *** + // *** otherwise will use the Previous values before being set. *** + powerOff ( true ); +} + /*! * \brief View::VConfirm::doConfirm * \details the invocable slot to send user's Confirmation