From 7f90b9938814ccc3c0d25c3053606439897e8eb3 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 1 Feb 2022 16:01:04 +0100 Subject: [PATCH] [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 --- src/modules/partition/gui/PartitionDialogHelpers.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modules/partition/gui/PartitionDialogHelpers.cpp b/src/modules/partition/gui/PartitionDialogHelpers.cpp index c8f4214eb..46b26bc2d 100644 --- a/src/modules/partition/gui/PartitionDialogHelpers.cpp +++ b/src/modules/partition/gui/PartitionDialogHelpers.cpp @@ -55,10 +55,6 @@ standardMountPoints( QComboBox& combo, const QString& selected ) QString selectedMountPoint( QComboBox& combo ) { - if ( combo.currentIndex() == -1 ) - { - return QString(); - } return combo.currentText(); }