BUG: Don't let Qt suppress error dialogs. Add call to SetErrorMode(0);
See #9258.
This commit is contained in:
parent
019252be80
commit
8289d0ed6e
Source/QtDialog
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue