# HG changeset patch # User nemo # Date 1378246037 14400 # Node ID a669869ee44c3d8dfbf855e90343613e7c9722e3 # Parent 2084b1b7839c486da4ca0cb11496c35ab89479a9 This probably fixes bug #700. untested. diff -r 2084b1b7839c -r a669869ee44c 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