From 8289d0ed6ef4df802d7c484631dc2c92a4ec32ca Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Tue, 14 Jul 2009 19:34:50 -0400 Subject: BUG: Don't let Qt suppress error dialogs. Add call to SetErrorMode(0); See #9258. --- Source/QtDialog/CMakeSetup.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #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 -- cgit v0.12