From 5f98586f8018092ee3f30083ef7582461f71c413 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 23 Feb 2020 04:03:47 -0600 Subject: Qt UI: Return exit code 1 if Install Env wizard cancelled --- ui/qt5/horizonwizard.cc | 5 +++++ 1 file changed, 5 insertions(+) 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 #ifdef HAS_INSTALL_ENV +# include # include # include # include /* 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; } -- cgit v1.2.3-70-g09d2