mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 03:15:44 -05:00
[partition] Avoid crash if combobox is gone and model resets
- Since the lambda is connected to the model only, it should check that the target combo exists as well.
This commit is contained in:
parent
2ce2b08027
commit
3bdbfe6bff
1 changed files with 2 additions and 1 deletions
|
@ -1027,6 +1027,7 @@ ChoicePage::updateActionChoicePreview( ChoicePage::InstallChoice choice )
|
|||
connect( m_core->bootLoaderModel(), &QAbstractItemModel::modelReset,
|
||||
[ this ]()
|
||||
{
|
||||
if ( !m_bootloaderComboBox.isNull() )
|
||||
Calamares::restoreSelectedBootLoader( *m_bootloaderComboBox, m_core->bootLoaderInstallPath() );
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue