From cf9837f48c453f870ab8530bf3f0b1fcab01ccea Mon Sep 17 00:00:00 2001 From: dalto Date: Mon, 22 Apr 2024 15:47:28 -0500 Subject: [PATCH] [partition] Don't crash is when going back without selecting a partition --- src/modules/partition/gui/ChoicePage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 5cddfe798..4ff9b772b 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -679,7 +679,11 @@ ChoicePage::onLeave() { if ( m_config->installChoice() == InstallChoice::Alongside ) { - doAlongsideApply(); + if ( m_afterPartitionSplitterWidget->splitPartitionSize() >= 0 + && m_afterPartitionSplitterWidget->newPartitionSize() >= 0 ) + { + doAlongsideApply(); + } } if ( m_isEfi