Changeset 715 for trunk/src


Ignore:
Timestamp:
Apr 30, 2010, 12:13:23 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: Reverted r615 (see #131).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/kernel/qcoreapplication_pm.cpp

    r690 r715  
    4242****************************************************************************/
    4343
    44 #define INCL_DOSUNDOCUEMENTED // for DosSysCtl()
    45 #include "qt_os2.h"
    46 
    4744#include "qcoreapplication.h"
    4845#include "qcoreapplication_p.h"
    4946#include "qstringlist.h"
     47#include "qt_os2.h"
    5048#include "qvector.h"
    5149#include "qmutex.h"
     
    107105}
    108106
    109 static ULONG savedDosErrorState = 0xff;
    110 
    111 static int globalInit()
    112 {
    113     // 27 - Get process DosError setting
    114     DosSysCtl(27, &savedDosErrorState);
    115     // disable hardware error popups to make the user's life less annoying
    116     DosError(savedDosErrorState & ~FERR_ENABLEHARDERR);
    117     return 0;
    118 }
    119 
    120 static int globalDone()
    121 {
    122     // restore error popups
    123     DosError(savedDosErrorState);
    124     return 0;
    125 }
    126 
    127 Q_CONSTRUCTOR_FUNCTION(globalInit)
    128 Q_DESTRUCTOR_FUNCTION(globalDone)
    129 
    130107QT_END_NAMESPACE
Note: See TracChangeset for help on using the changeset viewer.