summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
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;
}