author | llornkcor <llornkcor> | 2005-08-04 07:22:40 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2005-08-04 07:22:40 (UTC) |
commit | 77825e5455872ef0c6def793b38bc767a3838bc0 (patch) (unidiff) | |
tree | adff22adfee3d6a17dd9e0a76ccc51f2a2a20a1f /core | |
parent | 32743ebb00d374ad18afbed69ab3e94b03699a57 (diff) | |
download | opie-77825e5455872ef0c6def793b38bc767a3838bc0.zip opie-77825e5455872ef0c6def793b38bc767a3838bc0.tar.gz opie-77825e5455872ef0c6def793b38bc767a3838bc0.tar.bz2 |
apply patch in # 0001662, fixes build with uclibc
-rw-r--r-- | core/opie-login/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/opie-login/main.cpp b/core/opie-login/main.cpp index 554efd3..3f1077c 100644 --- a/core/opie-login/main.cpp +++ b/core/opie-login/main.cpp | |||
@@ -142,26 +142,29 @@ int main ( int argc, char **argv ) | |||
142 | } | 142 | } |
143 | } | 143 | } |
144 | if ( killedbysig ) { // qpe was killed by an uncaught signal | 144 | if ( killedbysig ) { // qpe was killed by an uncaught signal |
145 | qApp = 0; | 145 | qApp = 0; |
146 | 146 | ||
147 | ::syslog ( LOG_ERR, "Opie was killed by a signal #%d", killedbysig ); | 147 | ::syslog ( LOG_ERR, "Opie was killed by a signal #%d", killedbysig ); |
148 | 148 | ||
149 | QWSServer::setDesktopBackground ( QImage ( )); | 149 | QWSServer::setDesktopBackground ( QImage ( )); |
150 | QApplication *app = new QApplication ( argc, argv, QApplication::GuiServer ); | 150 | QApplication *app = new QApplication ( argc, argv, QApplication::GuiServer ); |
151 | app-> setFont ( QFont ( "Helvetica", 10 )); | 151 | app-> setFont ( QFont ( "Helvetica", 10 )); |
152 | app-> setStyle ( new QPEStyle ( )); | 152 | app-> setStyle ( new QPEStyle ( )); |
153 | 153 | ||
154 | // const char *sig = ::strsignal ( killedbysig ); | 154 | #ifndef __UCLIBC__ |
155 | const char *sig = ::sys_siglist[killedbysig]; | 155 | const char *sig = ::sys_siglist[killedbysig]; |
156 | #else | ||
157 | const char *sig = ::strsignal ( killedbysig ); | ||
158 | #endif | ||
156 | QLabel *l = new QLabel ( 0, "sig", Qt::WStyle_Customize | Qt::WStyle_NoBorder | Qt::WStyle_Tool ); | 159 | QLabel *l = new QLabel ( 0, "sig", Qt::WStyle_Customize | Qt::WStyle_NoBorder | Qt::WStyle_Tool ); |
157 | l-> setText ( LoginWindowImpl::tr( "Opie was terminated\nby an uncaught signal\n(%1)\n" ). arg ( sig )); | 160 | l-> setText ( LoginWindowImpl::tr( "Opie was terminated\nby an uncaught signal\n(%1)\n" ). arg ( sig )); |
158 | l-> setAlignment ( Qt::AlignCenter ); | 161 | l-> setAlignment ( Qt::AlignCenter ); |
159 | l-> move ( 0, 0 ); | 162 | l-> move ( 0, 0 ); |
160 | l-> resize ( app-> desktop ( )-> width ( ), app-> desktop ( )-> height ( )); | 163 | l-> resize ( app-> desktop ( )-> width ( ), app-> desktop ( )-> height ( )); |
161 | l-> show ( ); | 164 | l-> show ( ); |
162 | QTimer::singleShot ( 3000, app, SLOT( quit())); | 165 | QTimer::singleShot ( 3000, app, SLOT( quit())); |
163 | app-> exec ( ); | 166 | app-> exec ( ); |
164 | delete app; | 167 | delete app; |
165 | qApp = 0; | 168 | qApp = 0; |
166 | } | 169 | } |
167 | } | 170 | } |