mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
[partition] Convenience for selecting default mount point
- map blank to the "(no mount point)" string for UI purposes
This commit is contained in:
parent
fda2e54e0f
commit
a4997c4be8
3 changed files with 16 additions and 2 deletions
|
@ -46,3 +46,12 @@ standardMountPoints(QComboBox& combo)
|
|||
combo.addItems( standardMountPoints() );
|
||||
}
|
||||
|
||||
void
|
||||
standardMountPoints(QComboBox& combo, const QString& selected)
|
||||
{
|
||||
standardMountPoints( combo );
|
||||
if ( selected.isEmpty() )
|
||||
combo.setCurrentIndex( 0 );
|
||||
else
|
||||
combo.setCurrentText( selected );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue