QTfrontend/mapContainer.cpp
changeset 3009 8f4e6de8e4ef
parent 3008 e57cafce4227
child 3133 1ab5f18f4df8
--- a/QTfrontend/mapContainer.cpp	Wed Mar 17 10:48:00 2010 +0000
+++ b/QTfrontend/mapContainer.cpp	Wed Mar 17 10:55:12 2010 +0000
@@ -196,7 +196,7 @@
         gbThemes->hide();
         lblFilter->hide();
         CB_TemplateFilter->hide();
-        emit mapChanged(chooseMap->itemData(0).toList()[0].toString());
+        emit mapChanged(chooseMap->itemData(index).toList()[0].toString());
     }
 }
 
@@ -255,6 +255,7 @@
     mapInfo.push_back(QString("+rnd+"));
     mapInfo.push_back(theme);
     mapInfo.push_back(18);
+    mapInfo.push_back(false);
     chooseMap->setItemData(0, mapInfo);
     gbThemes->setIcon(QIcon(QString("%1/Themes/%2/icon.png").arg(datadir->absolutePath()).arg(theme)));
     emit themeChanged(theme);