summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/apps/calibrate/main.cpp3
-rw-r--r--core/opie-login/main.cpp3
2 files changed, 4 insertions, 2 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
@@ -33,7 +33,8 @@ int main( int argc, char ** argv )
33 int retval = 0; 33 int retval = 0;
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.
39 Calibrate cal; 40 Calibrate cal;
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
@@ -340,7 +340,8 @@ int login_main ( int argc, char **argv, pid_t ppid )
340 340
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.
346 Calibrate *cal = new Calibrate; 347 Calibrate *cal = new Calibrate;