Skip to content
Snippets Groups Projects
Commit 7f90b993 authored by Adriaan de Groot's avatar Adriaan de Groot
Browse files

[partition Simplify mountpoint-input

- if nothing is selected (index -1, which now shows the placeholder), the text is empty
- if something has been entered, return it (e.g. if the user is typing)
- if something is selected, the text gets set to that anyway
parent f4720ae0
No related branches found
No related tags found
No related merge requests found
...@@ -55,10 +55,6 @@ standardMountPoints( QComboBox& combo, const QString& selected ) ...@@ -55,10 +55,6 @@ standardMountPoints( QComboBox& combo, const QString& selected )
QString QString
selectedMountPoint( QComboBox& combo ) selectedMountPoint( QComboBox& combo )
{ {
if ( combo.currentIndex() == -1 )
{
return QString();
}
return combo.currentText(); return combo.currentText();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment