[partition] Don't crash is when going back without selecting a partition

This commit is contained in:
dalto 2024-04-22 15:47:28 -05:00
parent 19aa96fe54
commit cf9837f48c

View File

@ -678,9 +678,13 @@ void
ChoicePage::onLeave()
{
if ( m_config->installChoice() == InstallChoice::Alongside )
{
if ( m_afterPartitionSplitterWidget->splitPartitionSize() >= 0
&& m_afterPartitionSplitterWidget->newPartitionSize() >= 0 )
{
doAlongsideApply();
}
}
if ( m_isEfi
&& ( m_config->installChoice() == InstallChoice::Alongside