mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -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(QComboBox& combo, const QString& selected)
|
||||||
{
|
{
|
||||||
standardMountPoints( combo );
|
standardMountPoints( combo );
|
||||||
if ( selected.isEmpty() )
|
setSelectedMountPoint( combo, selected );
|
||||||
combo.setCurrentIndex( 0 );
|
|
||||||
else
|
|
||||||
combo.setCurrentText( selected );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString
|
QString
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue