From 364d30ca7c212a531b79bb7cbceb8af7a0130f2c Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 04 Oct 2003 07:27:33 +0000 Subject: Check if there is a Mouse Driver And get rid off the QPE_NEED_CALIBRATION define for defining the need of calibration We will find out at runtime SomeOne Apply this to core/server in the BRANCH as well --- (limited to 'core/launcher/main.cpp') diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp index 075985d..ad40536 100644 --- a/core/launcher/main.cpp +++ b/core/launcher/main.cpp @@ -198,7 +198,8 @@ static void initKeyboard() static bool firstUse() { bool needFirstUse = FALSE; - if ( QWSServer::mouseHandler() ->inherits("QCalibratedMouseHandler") ) { + if ( QWSServer::mouseHandler() && + QWSServer::mouseHandler() ->inherits("QCalibratedMouseHandler") ) { if ( !QFile::exists( "/etc/pointercal" ) ) needFirstUse = TRUE; } -- cgit v0.9.0.2