diff options
Diffstat (limited to 'ui/qt5/mountdialog.cc')
-rw-r--r-- | ui/qt5/mountdialog.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt5/mountdialog.cc b/ui/qt5/mountdialog.cc index 103e442..111bce6 100644 --- a/ui/qt5/mountdialog.cc +++ b/ui/qt5/mountdialog.cc @@ -61,6 +61,9 @@ MountDialog::MountDialog(QStringList skipParts, QStringList skipMounts, #else partInput = new QLineEdit; partInput->setWhatsThis(tr("Input the name of a partition, such as /dev/sda1, here.")); + connect(partInput, &QLineEdit::textChanged, [=] { + ok->setEnabled(partInput->text().startsWith("/dev/")); + }); #endif QStringList pathCandidates = {"/", "/home", "/opt", "/srv", "/usr", |