Script might well override a static map, but can't risk it not doing it, and preview completely failing. Better to just not try it for static maps. Some script cfg might help. Could also avoid unnnecessary preview regenerations even if the script was doing nothing at all.
--- 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)