Update bootloader combobox when the selected device changes.

main
Teo Mrnjavac 9 years ago
parent 4741c5f279
commit 0c05812c68

@ -330,7 +330,7 @@ ChoicePage::createBootloaderComboBox( ExpandableRadioButton* parentButton )
if ( bcb->model() != m_core->bootLoaderModel() ) if ( bcb->model() != m_core->bootLoaderModel() )
bcb->setModel( m_core->bootLoaderModel() ); bcb->setModel( m_core->bootLoaderModel() );
bcb->setCurrentIndex( m_lastSelectedDeviceIndex ); bcb->setCurrentIndex( m_lastSelectedDeviceIndex );
} ); }, Qt::QueuedConnection );
// ^ Must be Queued so it's sure to run when the widget is already visible. // ^ Must be Queued so it's sure to run when the widget is already visible.
return bcb; return bcb;
@ -441,11 +441,15 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
[ = ] [ = ]
{ {
PartitionActions::doAutopartition( m_core, selectedDevice() ); PartitionActions::doAutopartition( m_core, selectedDevice() );
emit deviceChosen();
}, },
this ); this );
} }
else else
{
PartitionActions::doAutopartition( m_core, selectedDevice() ); PartitionActions::doAutopartition( m_core, selectedDevice() );
emit deviceChosen();
}
break; break;
case Replace: case Replace:

Loading…
Cancel
Save