[libcalamaresui] Disallow closing the window during execution

- If the disable-cancel-during-exec setting is on, and the user clicks
   the window-close button, then disregard the close message.
This commit is contained in:
Adriaan de Groot 2019-05-14 13:21:05 +02:00
parent ad4352b65c
commit 088fa5004c

View File

@ -373,6 +373,8 @@ bool ViewManager::confirmCancelInstallation()
if ( settings->disableCancel() ) if ( settings->disableCancel() )
return false; return false;
if ( settings->dontCancel() && stepIsExecute( m_steps, m_currentStep ) )
return false;
// If it's NOT the last page of the last step, we ask for confirmation // If it's NOT the last page of the last step, we ask for confirmation
if ( !( m_currentStep == m_steps.count() -1 && if ( !( m_currentStep == m_steps.count() -1 &&