diff --git a/src/widgets/warningcontent.cpp b/src/widgets/warningcontent.cpp index c3fde967..5030cd07 100644 --- a/src/widgets/warningcontent.cpp +++ b/src/widgets/warningcontent.cpp @@ -204,7 +204,9 @@ void WarningContent::doAcceptShutdownInhibit() if (m_model->currentModeState() != SessionBaseModel::ModeStatus::ShutDownMode && m_model->currentModeState() != SessionBaseModel::ModeStatus::PowerMode && m_powerAction != SessionBaseModel::RequireUpdateShutdown - && m_powerAction != SessionBaseModel::RequireUpdateRestart ) { + && m_powerAction != SessionBaseModel::RequireUpdateRestart + && m_powerAction != SessionBaseModel::RequireShutdown + && m_powerAction != SessionBaseModel::RequireRestart ) { FullScreenBackground::setContent(LockContent::instance()); m_model->setCurrentContentType(SessionBaseModel::LockContent); }