Merge pull request #2322 from calamares/fixalongsidecrash

[partition] Don't crash when going back without selecting a partition
This commit is contained in:
Adriaan de Groot 2024-04-28 17:53:57 +02:00 committed by GitHub
commit 1ead64bd5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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