always update. a bit inefficient, but scripts do weird things.
authornemo
Sat, 01 Mar 2014 14:37:06 -0500
changeset 10169 532f4537a6ae
parent 10167 7f2685fff3e2
child 10170 db625d96da73
always update. a bit inefficient, but scripts do weird things.
QTfrontend/ui/widget/mapContainer.cpp
--- a/QTfrontend/ui/widget/mapContainer.cpp	Sat Mar 01 13:59:12 2014 -0500
+++ b/QTfrontend/ui/widget/mapContainer.cpp	Sat Mar 01 14:37:06 2014 -0500
@@ -408,8 +408,7 @@
 void HWMapContainer::setScript(const QString & script)
 {
     m_script = script;
-    if ((m_mapInfo.type == MapModel::GeneratedMap) || (m_mapInfo.type == MapModel::GeneratedMaze))
-        updatePreview();
+    askForGeneratedPreview();
 }
 
 void HWMapContainer::intSetMap(const QString & map)