summaryrefslogtreecommitdiff
path: root/core/apps/calibrate/main.cpp
Unidiff
Diffstat (limited to 'core/apps/calibrate/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/calibrate/main.cpp3
1 files changed, 2 insertions, 1 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
@@ -30,13 +30,14 @@
30int main( int argc, char ** argv ) 30int main( int argc, char ** argv )
31{ 31{
32 QPEApplication a( argc, argv ); 32 QPEApplication a( argc, 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;
40 a.setMainWidget(&cal); 41 a.setMainWidget(&cal);
41 a.showMainWidget(&cal); 42 a.showMainWidget(&cal);
42 return a.exec(); 43 return a.exec();