author | alwin <alwin> | 2004-03-02 19:39:28 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-03-02 19:39:28 (UTC) |
commit | 65497ae2d9fa41173930748dc104d00706268c41 (patch) (side-by-side diff) | |
tree | 0f45ddf8339245f95f788885ad3378f63dc71963 | |
parent | db1615def104b2637d9404ac0f1e3790a8d7731f (diff) | |
download | opie-65497ae2d9fa41173930748dc104d00706268c41.zip opie-65497ae2d9fa41173930748dc104d00706268c41.tar.gz opie-65497ae2d9fa41173930748dc104d00706268c41.tar.bz2 |
fix so it will compile with gcc2 toolchain
-rw-r--r-- | core/opie-login/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/opie-login/main.cpp b/core/opie-login/main.cpp index 8d0976f..6aa7287 100644 --- a/core/opie-login/main.cpp +++ b/core/opie-login/main.cpp @@ -143,49 +143,50 @@ int main ( int argc, char **argv ) } if ( WIFSIGNALED( status )) { switch ( WTERMSIG( status )) { case SIGTERM: case SIGINT : case SIGKILL: break; default : killedbysig = WTERMSIG( status ); break; } } if ( killedbysig ) { // qpe was killed by an uncaught signal qApp = 0; ::syslog ( LOG_ERR, "Opie was killed by a signal #%d", killedbysig ); QWSServer::setDesktopBackground ( QImage ( )); QApplication *app = new QApplication ( argc, argv, QApplication::GuiServer ); app-> setFont ( QFont ( "Helvetica", 10 )); app-> setStyle ( new QPEStyle ( )); - const char *sig = ::strsignal ( killedbysig ); +// const char *sig = ::strsignal ( killedbysig ); + const char *sig = ::sys_siglist[killedbysig]; QLabel *l = new QLabel ( 0, "sig", Qt::WStyle_Customize | Qt::WStyle_NoBorder | Qt::WStyle_Tool ); l-> setText ( LoginWindowImpl::tr( "Opie was terminated\nby an uncaught signal\n(%1)\n" ). arg ( sig )); l-> setAlignment ( Qt::AlignCenter ); l-> move ( 0, 0 ); l-> resize ( app-> desktop ( )-> width ( ), app-> desktop ( )-> height ( )); l-> show ( ); QTimer::singleShot ( 3000, app, SLOT( quit())); app-> exec ( ); delete app; qApp = 0; } } else { if ( !autolog ) { QString confFile=QPEApplication::qpeDir() + "/etc/opie-login.conf"; Config cfg ( confFile, Config::File ); cfg. setGroup ( "General" ); QString user = cfg. readEntry ( "AutoLogin" ); if ( !user. isEmpty ( )) autolog = ::strdup ( user. latin1 ( )); } if ( autolog && !userExited ) { |