diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 0024ebc83..e6d1d948c 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -324,6 +324,13 @@ ChoicePage::createBootloaderComboBox( ExpandableRadioButton* parentButton ) if ( expanded ) updateBootloaderDevice(); }, Qt::QueuedConnection ); + connect( m_core, &PartitionCoreModule::deviceReverted, + this, [ this, bcb ]( Device* dev ) + { + if ( bcb->model() != m_core->bootLoaderModel() ) + bcb->setModel( m_core->bootLoaderModel() ); + bcb->setCurrentIndex( m_lastSelectedDeviceIndex ); + } ); // ^ Must be Queued so it's sure to run when the widget is already visible. return bcb;