diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2009-07-14 23:34:50 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2009-07-14 23:34:50 (GMT) |
commit | 8289d0ed6ef4df802d7c484631dc2c92a4ec32ca (patch) | |
tree | a3bcff2279658ab28f0afdc605bfd14ace786f67 | |
parent | 019252be8096313707f4bc401e34b1687c02b763 (diff) | |
download | CMake-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.cxx | 8 |
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 |