summaryrefslogtreecommitdiff
path: root/ui/qt5/mountdialog.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-24 21:36:17 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-24 21:36:17 -0500
commite355395ee830bdffe3f88c39c77e3aca2043a19c (patch)
tree47ce3a1d7d5f2fd808fc97cef9e774deac1d3175 /ui/qt5/mountdialog.cc
parent36541505b3e9829614de34da1afa3b72687dc042 (diff)
downloadhorizon-e355395ee830bdffe3f88c39c77e3aca2043a19c.tar.gz
horizon-e355395ee830bdffe3f88c39c77e3aca2043a19c.tar.bz2
horizon-e355395ee830bdffe3f88c39c77e3aca2043a19c.tar.xz
horizon-e355395ee830bdffe3f88c39c77e3aca2043a19c.zip
Qt UI: Fix a few issues with the Runtime wizard
Diffstat (limited to 'ui/qt5/mountdialog.cc')
-rw-r--r--ui/qt5/mountdialog.cc3
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",