QTfrontend/ui/widget/mapContainer.cpp
changeset 9452 a669869ee44c
parent 8941 bc2957e1980c
child 9735 6312152d92ad
--- a/QTfrontend/ui/widget/mapContainer.cpp	Tue Sep 03 22:48:26 2013 +0400
+++ b/QTfrontend/ui/widget/mapContainer.cpp	Tue Sep 03 18:07:17 2013 -0400
@@ -347,15 +347,16 @@
 
 void HWMapContainer::previewClicked()
 {
-    switch (m_mapInfo.type)
-    {
-        case MapModel::HandDrawnMap:
-            emit drawMapRequested();
-            break;
-        default:
-            setRandomMap();
-            break;
-    }
+    if (isMaster()) // should only perform these if master, but disabling the button when not, causes an unattractive preview.
+        switch (m_mapInfo.type)
+        {
+            case MapModel::HandDrawnMap:
+                emit drawMapRequested();
+                break;
+            default:
+                setRandomMap();
+                break;
+        }
 }
 
 QString HWMapContainer::getCurrentSeed() const