summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2009-07-14 23:34:50 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2009-07-14 23:34:50 (GMT)
commit8289d0ed6ef4df802d7c484631dc2c92a4ec32ca (patch)
treea3bcff2279658ab28f0afdc605bfd14ace786f67
parent019252be8096313707f4bc401e34b1687c02b763 (diff)
downloadCMake-8289d0ed6ef4df802d7c484631dc2c92a4ec32ca.zip
CMake-8289d0ed6ef4df802d7c484631dc2c92a4ec32ca.tar.gz
CMake-8289d0ed6ef4df802d7c484631dc2c92a4ec32ca.tar.bz2
BUG: Don't let Qt suppress error dialogs. Add call to SetErrorMode(0);
See #9258.
-rw-r--r--Source/QtDialog/CMakeSetup.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index 8401b32..756e2c8 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -22,6 +22,10 @@
#include <QLocale>
#include "QMacInstallDialog.h"
+#ifdef Q_OS_WIN
+#include "windows.h" // for SetErrorMode
+#endif
+
#include "CMakeSetupDialog.h"
#include "cmDocumentation.h"
#include "cmake.h"
@@ -104,6 +108,10 @@ int main(int argc, char** argv)
}
QApplication app(argc, argv);
+#ifdef Q_OS_WIN
+ // QApplication changes error mode, let's put it back
+ SetErrorMode(0);
+#endif
// clean out standard Qt paths for plugins, which we don't use anyway
// when creating Mac bundles, it potentially causes problems