[Cmake-commits] [cmake-commits] clinton committed CMakeSetup.cxx 1.22 1.23

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Jul 14 19:34:53 EDT 2009


Update of /cvsroot/CMake/CMake/Source/QtDialog
In directory public:/mounts/ram/cvs-serv8906

Modified Files:
	CMakeSetup.cxx 
Log Message:

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



Index: CMakeSetup.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/CMakeSetup.cxx,v
retrieving revision 1.22
retrieving revision 1.23
diff -C 2 -d -r1.22 -r1.23
*** CMakeSetup.cxx	5 Mar 2009 20:17:07 -0000	1.22
--- CMakeSetup.cxx	14 Jul 2009 23:34:50 -0000	1.23
***************
*** 23,26 ****
--- 23,30 ----
  #include "QMacInstallDialog.h"
  
+ #ifdef Q_OS_WIN
+ #include "windows.h"  // for SetErrorMode
+ #endif
+ 
  #include "CMakeSetupDialog.h"
  #include "cmDocumentation.h"
***************
*** 105,108 ****
--- 109,116 ----
  
    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



More information about the Cmake-commits mailing list