--- 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)