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