QTfrontend/ui/widget/mapContainer.cpp
changeset 9452 a669869ee44c
parent 8941 bc2957e1980c
child 9735 6312152d92ad
equal deleted inserted replaced
9450:2084b1b7839c 9452:a669869ee44c
   345     cType->setEnabled(false);
   345     cType->setEnabled(false);
   346 }
   346 }
   347 
   347 
   348 void HWMapContainer::previewClicked()
   348 void HWMapContainer::previewClicked()
   349 {
   349 {
   350     switch (m_mapInfo.type)
   350     if (isMaster()) // should only perform these if master, but disabling the button when not, causes an unattractive preview.
   351     {
   351         switch (m_mapInfo.type)
   352         case MapModel::HandDrawnMap:
   352         {
   353             emit drawMapRequested();
   353             case MapModel::HandDrawnMap:
   354             break;
   354                 emit drawMapRequested();
   355         default:
   355                 break;
   356             setRandomMap();
   356             default:
   357             break;
   357                 setRandomMap();
   358     }
   358                 break;
       
   359         }
   359 }
   360 }
   360 
   361 
   361 QString HWMapContainer::getCurrentSeed() const
   362 QString HWMapContainer::getCurrentSeed() const
   362 {
   363 {
   363     return m_seed;
   364     return m_seed;