[partition] Also update combo box index when setting up

- Avoids case where you edit a partition with a mountpoint
   set; previously, calling setText() would update the text
   but leave the selected index unchanged (usually 0), so that
   later calling selectedMountPoint() would return empty.
main
Adriaan de Groot 7 years ago
parent 323d20d1a5
commit 5b4668822d

@ -51,10 +51,7 @@ void
standardMountPoints(QComboBox& combo, const QString& selected)
{
standardMountPoints( combo );
if ( selected.isEmpty() )
combo.setCurrentIndex( 0 );
else
combo.setCurrentText( selected );
setSelectedMountPoint( combo, selected );
}
QString

Loading…
Cancel
Save