This probably fixes bug #700. untested.
authornemo
Tue, 03 Sep 2013 18:07:17 -0400
changeset 9452 a669869ee44c
parent 9450 2084b1b7839c
child 9454 ac1874d56057
This probably fixes bug #700. untested.
QTfrontend/ui/widget/mapContainer.cpp
--- 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