my turn to do a neglected merge for someone else
authornemo
Fri, 01 Mar 2013 16:12:25 -0500
changeset 8621 f9677715a582
parent 8619 253750e192e7 (diff)
parent 8620 6787f745da50 (current diff)
child 8625 d77090a8a35e
child 8630 91ad5fe4f1d5
my turn to do a neglected merge for someone else
--- a/QTfrontend/ui/widget/mapContainer.cpp	Sat Mar 02 00:16:37 2013 +0400
+++ b/QTfrontend/ui/widget/mapContainer.cpp	Fri Mar 01 16:12:25 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)