QTfrontend/ui/widget/mapContainer.cpp
changeset 10171 00f41ff0bf2d
parent 10169 532f4537a6ae
child 10175 c92668840ea8
equal deleted inserted replaced
10170:db625d96da73 10171:00f41ff0bf2d
   406 }
   406 }
   407 
   407 
   408 void HWMapContainer::setScript(const QString & script)
   408 void HWMapContainer::setScript(const QString & script)
   409 {
   409 {
   410     m_script = script;
   410     m_script = script;
   411     askForGeneratedPreview();
   411     if ((m_mapInfo.type == MapModel::GeneratedMap) || (m_mapInfo.type == MapModel::GeneratedMaze) || (m_mapInfo.type == MapModel::HandDrawnMap))
       
   412         updatePreview();
   412 }
   413 }
   413 
   414 
   414 void HWMapContainer::intSetMap(const QString & map)
   415 void HWMapContainer::intSetMap(const QString & map)
   415 {
   416 {
   416     if (map == "+rnd+")
   417     if (map == "+rnd+")