QTfrontend/ui/widget/mapContainer.cpp
changeset 11754 2e4f0d0fec99
parent 11753 5c192a4751d8
child 11757 6874644a2d00
--- a/QTfrontend/ui/widget/mapContainer.cpp	Thu Apr 28 02:06:35 2016 +0200
+++ b/QTfrontend/ui/widget/mapContainer.cpp	Thu Apr 28 15:23:02 2016 +0200
@@ -527,10 +527,9 @@
 
 void HWMapContainer::setRandomTheme()
 {
-    QAbstractItemModel * tmodel = m_themeModel->withoutDLC();
-    if(!tmodel->rowCount()) return;
-    quint32 themeNum = rand() % tmodel->rowCount();
-    updateTheme(tmodel->index(themeNum,0));
+    if(!m_themeModel->rowCount()) return;
+    quint32 themeNum = rand() % m_themeModel->rowCount();
+    updateTheme(m_themeModel->index(themeNum));
     emit themeChanged(m_theme);
 }