From e355395ee830bdffe3f88c39c77e3aca2043a19c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 24 May 2020 21:36:17 -0500 Subject: Qt UI: Fix a few issues with the Runtime wizard --- ui/qt5/mountdialog.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/qt5/mountdialog.cc') 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", -- cgit v1.2.3-70-g09d2