QTfrontend/ui/widget/mapContainer.cpp
changeset 10171 00f41ff0bf2d
parent 10169 532f4537a6ae
child 10175 c92668840ea8
--- a/QTfrontend/ui/widget/mapContainer.cpp	Sat Mar 01 23:37:59 2014 +0400
+++ b/QTfrontend/ui/widget/mapContainer.cpp	Sat Mar 01 14:52:36 2014 -0500
@@ -408,7 +408,8 @@
 void HWMapContainer::setScript(const QString & script)
 {
     m_script = script;
-    askForGeneratedPreview();
+    if ((m_mapInfo.type == MapModel::GeneratedMap) || (m_mapInfo.type == MapModel::GeneratedMaze) || (m_mapInfo.type == MapModel::HandDrawnMap))
+        updatePreview();
 }
 
 void HWMapContainer::intSetMap(const QString & map)