Update bootloader combobox when the selected device changes.

This commit is contained in:
Teo Mrnjavac 2016-01-07 17:23:29 +01:00
parent 4741c5f279
commit 0c05812c68

View File

@ -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: