QTfrontend/mapContainer.cpp
changeset 5793 401ab167bd9f
parent 5789 7643cbb88f09
child 5794 cc6e8403664d
--- a/QTfrontend/mapContainer.cpp	Tue Sep 06 10:40:32 2011 -0400
+++ b/QTfrontend/mapContainer.cpp	Tue Sep 06 20:53:26 2011 +0400
@@ -576,7 +576,10 @@
 void HWMapContainer::intSetMapgen(MapGenerator m)
 {
     mapgen = m;
-    chooseMap->setCurrentIndex(m);
+
+    if(m != MAPGEN_MAP)
+        chooseMap->setCurrentIndex(m);
+
     emit mapgenChanged(m);
 }
 
@@ -662,7 +665,7 @@
 void HWMapContainer::setAllMapParameters(const QString &map, MapGenerator m, int mazesize, const QString &seed, int tmpl)
 {
     intSetMap(map);
-    if (map[0]=='+') intSetMapgen(m);
+    intSetMapgen(m);
     intSetMazeSize(mazesize);
     intSetSeed(seed);
     intSetTemplateFilter(tmpl);