mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
[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.
This commit is contained in:
parent
323d20d1a5
commit
5b4668822d
1 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue