Ignore:
Timestamp:
Dec 3, 2006, 6:45:43 PM (19 years ago)
Author:
dmik
Message:

Psi: Added installation of the OS/2 System Exception handler (QtOS2SysXcptHandler) on the main thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • psi/trunk/src/common.cpp

    r76 r84  
    2121#include"common.h"
    2222
     23#if defined(Q_OS_OS2) && !defined(QT_OS2_NO_SYSEXCEPTIONS)
     24#include <qt_os2.h>
     25#endif
     26
    2327#include"profiles.h"
    2428#include"rtparse.h"
     
    2731
    2832QString PROG_NAME = "Psi/2";
    29 QString PROG_VERSION = "0.10.1";
    30 //QString PROG_VERSION = "0.10.1-dev (" __DATE__ ")";
     33//QString PROG_VERSION = "0.10.2";
     34QString PROG_VERSION = "0.10.2-dev (" __DATE__ ")";
    3135
    3236#ifdef HAVE_CONFIG
     
    20112015}
    20122016
     2017#if defined(Q_OS_OS2) && !defined(QT_OS2_NO_SYSEXCEPTIONS)
     2018int psiOS2SysXcptCallback( QtOS2SysXcptReq req, QtOS2SysXcptWriter writer,
     2019                                                   int /* reserved */ )
     2020{
     2021    switch( req )
     2022    {
     2023        case QtOS2SysXcptReq_AppName:
     2024            if ( writer ) writer( PROG_NAME.latin1() );
     2025            return TRUE;
     2026        case QtOS2SysXcptReq_AppVer:
     2027            if ( writer ) writer( PROG_VERSION.latin1() );
     2028            return TRUE;
     2029        case QtOS2SysXcptReq_ReportTo:
     2030            if ( writer ) writer( "qt-traps@hugaida.com" );
     2031            return TRUE;
     2032                default:
     2033                        break;
     2034    }
     2035    return FALSE;
     2036}
     2037#endif
Note: See TracChangeset for help on using the changeset viewer.