- Timestamp:
- Apr 30, 2010, 12:13:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/kernel/qcoreapplication_pm.cpp
r690 r715 42 42 ****************************************************************************/ 43 43 44 #define INCL_DOSUNDOCUEMENTED // for DosSysCtl()45 #include "qt_os2.h"46 47 44 #include "qcoreapplication.h" 48 45 #include "qcoreapplication_p.h" 49 46 #include "qstringlist.h" 47 #include "qt_os2.h" 50 48 #include "qvector.h" 51 49 #include "qmutex.h" … … 107 105 } 108 106 109 static ULONG savedDosErrorState = 0xff;110 111 static int globalInit()112 {113 // 27 - Get process DosError setting114 DosSysCtl(27, &savedDosErrorState);115 // disable hardware error popups to make the user's life less annoying116 DosError(savedDosErrorState & ~FERR_ENABLEHARDERR);117 return 0;118 }119 120 static int globalDone()121 {122 // restore error popups123 DosError(savedDosErrorState);124 return 0;125 }126 127 Q_CONSTRUCTOR_FUNCTION(globalInit)128 Q_DESTRUCTOR_FUNCTION(globalDone)129 130 107 QT_END_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.