mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
[partition] Unmap mount-point special strings
- Reverse "(no mount point)" to the empty string - Provide convenience pointer-taking function
This commit is contained in:
parent
a4997c4be8
commit
a49c39bb53
4 changed files with 24 additions and 8 deletions
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "GlobalStorage.h"
|
||||
#include "JobQueue.h"
|
||||
#include "utils/Logger.h"
|
||||
|
||||
#include <QComboBox>
|
||||
|
||||
|
@ -55,3 +56,12 @@ standardMountPoints(QComboBox& combo, const QString& selected)
|
|||
else
|
||||
combo.setCurrentText( selected );
|
||||
}
|
||||
|
||||
QString
|
||||
selectedMountPoint(QComboBox& combo)
|
||||
{
|
||||
cDebug() << "Selected mount point" << combo.currentIndex() << combo.currentText();
|
||||
if ( combo.currentIndex() == 0 )
|
||||
return QString();
|
||||
return combo.currentText();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue