summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-23 04:03:47 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-23 04:03:47 -0600
commit5f98586f8018092ee3f30083ef7582461f71c413 (patch)
tree207ea662ded07b2d9427e86c8e7f5d3cbf331b21 /ui
parentcd7bf11ba9885d974f94c0ae57709b99c63b92c2 (diff)
downloadhorizon-5f98586f8018092ee3f30083ef7582461f71c413.tar.gz
horizon-5f98586f8018092ee3f30083ef7582461f71c413.tar.bz2
horizon-5f98586f8018092ee3f30083ef7582461f71c413.tar.xz
horizon-5f98586f8018092ee3f30083ef7582461f71c413.zip
Qt UI: Return exit code 1 if Install Env wizard cancelled
Diffstat (limited to 'ui')
-rw-r--r--ui/qt5/horizonwizard.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc
index bec4f71..818ed53 100644
--- a/ui/qt5/horizonwizard.cc
+++ b/ui/qt5/horizonwizard.cc
@@ -23,6 +23,7 @@
#include <string>
#ifdef HAS_INSTALL_ENV
+# include <QApplication>
# include <QProcess>
# include <libudev.h>
# include <net/if.h> /* ifreq */
@@ -717,7 +718,11 @@ void HorizonWizard::reject() {
cancel.setDefaultButton(QMessageBox::No);
if(cancel.exec() == QMessageBox::Yes) {
+#ifdef HAS_INSTALL_ENV
+ qApp->exit(1);
+#else /* !HAS_INSTALL_ENV */
done(QDialog::Rejected);
+#endif /* HAS_INSTALL_ENV */
} else {
return;
}