From 1ffc0bf77df56f708ce8f3c8726a3671ec2f617a Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sun, 17 Mar 2019 16:26:37 -0400 Subject: [PATCH] [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. --- src/modules/partition/gui/ChoicePage.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 9d86a32a1..446d26a89 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -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