OSDN Git Service

Crash when no Qt version is defined
authorPawel Polanski <pawel.3.polanski@nokia.com>
Fri, 20 May 2011 13:04:19 +0000 (15:04 +0200)
committerTobias Hunger <tobias.hunger@nokia.com>
Fri, 20 May 2011 13:15:40 +0000 (15:15 +0200)
Change-Id: Iffef69e328d9b7294c6aeb753219033456efe2c2
Reviewed-on: http://codereview.qt.nokia.com/40
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
src/plugins/qt4projectmanager/qt-s60/s60publishingbuildsettingspageovi.cpp

index cf7de40..6c77c3c 100644 (file)
@@ -61,7 +61,7 @@ S60PublishingBuildSettingsPageOvi::S60PublishingBuildSettingsPageOvi(S60Publishe
         foreach (ProjectExplorer::BuildConfiguration * const bc, target->buildConfigurations()) {
             Qt4BuildConfiguration * const qt4bc
                 = qobject_cast<Qt4BuildConfiguration *>(bc);
-            if (!qt4bc)
+            if (!qt4bc || !qt4bc->qtVersion())
                 continue;
             if (qt4bc->qtVersion()->qtVersion() > QtVersionNumber(4, 6, 2))
                 list << qt4bc;