Frontend:
authorsmxx
Tue, 30 Mar 2010 20:51:25 +0000
changeset 3195 c6f58cff5ffc
parent 3194 500536cff25c
child 3196 336d6fc3325c
Frontend: * Check for missing item data due to entry being a separator in map list
QTfrontend/mapContainer.cpp
--- a/QTfrontend/mapContainer.cpp	Tue Mar 30 20:39:34 2010 +0000
+++ b/QTfrontend/mapContainer.cpp	Tue Mar 30 20:51:25 2010 +0000
@@ -365,7 +365,7 @@
 
     int id = 0;
     for(int i = 0; i < chooseMap->count(); i++)
-        if(chooseMap->itemData(i).toList()[0].toString() == map)
+        if(!chooseMap->itemData(i).isNull() && chooseMap->itemData(i).toList()[0].toString() == map)
         {
             id = i;
             break;