qtmobility/src/location/qgeosatelliteinfosource.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
--- a/qtmobility/src/location/qgeosatelliteinfosource.cpp	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/src/location/qgeosatelliteinfosource.cpp	Mon May 03 13:18:40 2010 +0300
@@ -46,6 +46,8 @@
 #   include "qgeosatelliteinfosource_wince_p.h"
 #elif defined(Q_WS_MAEMO_6)
 #   include "qgeosatelliteinfosource_maemo_p.h"
+#elif defined(Q_WS_MAEMO_5)
+#   include "qgeosatelliteinfosource_maemo5_p.h"
 #endif
 
 QTM_BEGIN_NAMESPACE
@@ -88,10 +90,12 @@
 #if defined(Q_OS_SYMBIAN)
     CQGeoSatelliteInfoSourceS60 *ret = NULL;
     TRAPD(error, ret = CQGeoSatelliteInfoSourceS60::NewL(parent));
+    if (error != KErrNone)
+        return 0;
     return ret;
 #elif defined(Q_OS_WINCE)
     return new QGeoSatelliteInfoSourceWinCE(parent);
-#elif defined(Q_WS_MAEMO_6)
+#elif (defined(Q_WS_MAEMO_6)) || (defined(Q_WS_MAEMO_5))
     QGeoSatelliteInfoSourceMaemo *source = new QGeoSatelliteInfoSourceMaemo(parent);
     int status = source->init();
 
@@ -103,8 +107,8 @@
     return source;
 #else
     Q_UNUSED(parent);
+    return 0;
 #endif
-    return 0;
 }
 
 /*!