From 0c05812c684921a426ff8b80001118a7236299b7 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 7 Jan 2016 17:23:29 +0100 Subject: [PATCH] Update bootloader combobox when the selected device changes. --- src/modules/partition/gui/ChoicePage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index e6d1d948c..279d2dcc0 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -330,7 +330,7 @@ ChoicePage::createBootloaderComboBox( ExpandableRadioButton* parentButton ) if ( bcb->model() != m_core->bootLoaderModel() ) bcb->setModel( m_core->bootLoaderModel() ); bcb->setCurrentIndex( m_lastSelectedDeviceIndex ); - } ); + }, Qt::QueuedConnection ); // ^ Must be Queued so it's sure to run when the widget is already visible. return bcb; @@ -441,11 +441,15 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice ) [ = ] { PartitionActions::doAutopartition( m_core, selectedDevice() ); + emit deviceChosen(); }, this ); } else + { PartitionActions::doAutopartition( m_core, selectedDevice() ); + emit deviceChosen(); + } break; case Replace: