BUG: Don't let Qt suppress error dialogs. Add call to SetErrorMode(0);

See #9258.
This commit is contained in:
Clinton Stimpson 2009-07-14 19:34:50 -04:00
parent 019252be80
commit 8289d0ed6e
1 changed files with 8 additions and 0 deletions

View File

@ -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