# HG changeset patch # User nemo # Date 1393703556 18000 # Node ID 00f41ff0bf2d53fbf1ab7340787106279c9d07b3 # Parent db625d96da736138a4fce031d014024a4c4834fa 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. diff -r db625d96da73 -r 00f41ff0bf2d QTfrontend/ui/widget/mapContainer.cpp --- 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)