QTfrontend/ui/widget/mapContainer.cpp
changeset 8619 253750e192e7
parent 8475 f605bc59c603
child 8695 63936a70c177
--- a/QTfrontend/ui/widget/mapContainer.cpp	Fri Mar 01 10:38:49 2013 -0500
+++ b/QTfrontend/ui/widget/mapContainer.cpp	Fri Mar 01 15:50:00 2013 -0500
@@ -462,6 +462,8 @@
 
 void HWMapContainer::setRandomMap()
 {
+    if (!m_master) return;
+    
     setRandomSeed();
     switch(m_mapInfo.type)
     {
@@ -491,7 +493,7 @@
     if(!m_themeModel->rowCount()) return;
     quint32 themeNum = rand() % m_themeModel->rowCount();
     updateTheme(m_themeModel->index(themeNum));
-    qDebug() << "RANDOM THEME:" << themeNum;
+    emit themeChanged(m_theme);
 }
 
 void HWMapContainer::intSetTemplateFilter(int filter)