summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/calibrate/main.cpp3
-rw-r--r--core/opie-login/main.cpp13
2 files changed, 9 insertions, 7 deletions
diff --git a/core/apps/calibrate/main.cpp b/core/apps/calibrate/main.cpp
index 1c295eb..ec9b5ec 100644
--- a/core/apps/calibrate/main.cpp
+++ b/core/apps/calibrate/main.cpp
@@ -34,5 +34,6 @@ int main( int argc, char ** argv )
34 34
35#ifdef QWS 35#ifdef QWS
36 if ( QWSServer::mouseHandler() ->inherits("QCalibratedMouseHandler") ) { 36 if ( QWSServer::mouseHandler() &&
37 QWSServer::mouseHandler() ->inherits("QCalibratedMouseHandler") ) {
37#endif 38#endif
38 // Make sure calibration widget starts on top. 39 // Make sure calibration widget starts on top.
diff --git a/core/opie-login/main.cpp b/core/opie-login/main.cpp
index 7dcb5f6..2103216 100644
--- a/core/opie-login/main.cpp
+++ b/core/opie-login/main.cpp
@@ -108,5 +108,5 @@ int main ( int argc, char **argv )
108 ::setsid ( ); 108 ::setsid ( );
109 109
110 ::signal ( SIGTERM, sigterm ); 110 ::signal ( SIGTERM, sigterm );
111 ::signal ( SIGINT, sigterm ); 111 ::signal ( SIGINT, sigterm );
112 112
@@ -161,5 +161,5 @@ int main ( int argc, char **argv )
161 if ( killedbysig ) { // qpe was killed by an uncaught signal 161 if ( killedbysig ) { // qpe was killed by an uncaught signal
162 qApp = 0; 162 qApp = 0;
163 163
164 ::syslog ( LOG_ERR, "Opie was killed by a signal #%d", killedbysig ); 164 ::syslog ( LOG_ERR, "Opie was killed by a signal #%d", killedbysig );
165 165
@@ -188,9 +188,9 @@ int main ( int argc, char **argv )
188 cfg. setGroup ( "General" ); 188 cfg. setGroup ( "General" );
189 QString user = cfg. readEntry ( "AutoLogin" ); 189 QString user = cfg. readEntry ( "AutoLogin" );
190 190
191 if ( !user. isEmpty ( )) 191 if ( !user. isEmpty ( ))
192 autolog = ::strdup ( user. latin1 ( )); 192 autolog = ::strdup ( user. latin1 ( ));
193 } 193 }
194 194
195 if ( autolog && !userExited ) { 195 if ( autolog && !userExited ) {
196 196
@@ -200,5 +200,5 @@ int main ( int argc, char **argv )
200 LoginApplication *app = new LoginApplication ( argc, argv, ppid ); 200 LoginApplication *app = new LoginApplication ( argc, argv, ppid );
201 LoginApplication::setLoginAs ( autolog ); 201 LoginApplication::setLoginAs ( autolog );
202 202
203 203
204 if ( LoginApplication::changeIdentity ( )) 204 if ( LoginApplication::changeIdentity ( ))
@@ -341,5 +341,6 @@ int login_main ( int argc, char **argv, pid_t ppid )
341 ODevice::inst ( )-> setSoftSuspend ( true ); 341 ODevice::inst ( )-> setSoftSuspend ( true );
342 342
343 if ( QWSServer::mouseHandler() ->inherits("QCalibratedMouseHandler") ) { 343 if ( QWSServer::mouseHandler() &&
344 QWSServer::mouseHandler() ->inherits("QCalibratedMouseHandler") ) {
344 if ( !QFile::exists ( "/etc/pointercal" )) { 345 if ( !QFile::exists ( "/etc/pointercal" )) {
345 // Make sure calibration widget starts on top. 346 // Make sure calibration widget starts on top.