[partition] Allow all the unsafe options

- If the unsafe actions are enabled, but won't be executed,
   allow more unsafe actions like erasing mounted partitions
   and everything.
This commit is contained in:
Adriaan de Groot 2019-03-17 16:26:37 -04:00
parent cd545e51b0
commit 1ffc0bf77d

View File

@ -1359,6 +1359,16 @@ ChoicePage::setupActions()
)
}
#ifdef DEBUG_PARTITION_UNSAFE
#ifdef DEBUG_PARTITION_LAME
// If things can't be broken, allow all the buttons
atLeastOneCanBeReplaced = true;
atLeastOneCanBeResized = true;
atLeastOneIsMounted = false;
isInactiveRAID = false;
#endif
#endif
if ( atLeastOneCanBeReplaced )
m_replaceButton->show();
else