diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index aace251d4d559a9f61b8a2dfc629e258d8a0b95f..89b7cdd0a3d2af9237488d87434fe4095ebbfbee 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -546,6 +546,9 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current, [=] { setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selectedRows().isEmpty() ); + if ( !m_bootloaderComboBox.isNull() && + m_bootloaderComboBox->currentIndex() < 0 ) + m_bootloaderComboBox->setCurrentIndex( m_lastSelectedDeviceIndex ); }, this ); } @@ -713,9 +716,7 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice ) connect( m_core, &PartitionCoreModule::deviceReverted, this, [ this ]( Device* dev ) { - if ( dev && - dev == selectedDevice() && - !m_bootloaderComboBox.isNull() ) + if ( !m_bootloaderComboBox.isNull() ) { if ( m_bootloaderComboBox->model() != m_core->bootLoaderModel() ) m_bootloaderComboBox->setModel( m_core->bootLoaderModel() );