QTfrontend/mapContainer.cpp
changeset 3195 c6f58cff5ffc
parent 3185 19d84448835f
child 3865 0b1c426b035f
equal deleted inserted replaced
3194:500536cff25c 3195:c6f58cff5ffc
   363         return;
   363         return;
   364     }
   364     }
   365 
   365 
   366     int id = 0;
   366     int id = 0;
   367     for(int i = 0; i < chooseMap->count(); i++)
   367     for(int i = 0; i < chooseMap->count(); i++)
   368         if(chooseMap->itemData(i).toList()[0].toString() == map)
   368         if(!chooseMap->itemData(i).isNull() && chooseMap->itemData(i).toList()[0].toString() == map)
   369         {
   369         {
   370             id = i;
   370             id = i;
   371             break;
   371             break;
   372         }
   372         }
   373 
   373