diff -r 3c66845947a8 -r 5c192a4751d8 QTfrontend/ui/widget/mapContainer.cpp --- a/QTfrontend/ui/widget/mapContainer.cpp Thu Apr 28 00:41:09 2016 +0200 +++ b/QTfrontend/ui/widget/mapContainer.cpp Thu Apr 28 02:06:35 2016 +0200 @@ -527,9 +527,10 @@ void HWMapContainer::setRandomTheme() { - if(!m_themeModel->rowCount()) return; - quint32 themeNum = rand() % m_themeModel->rowCount(); - updateTheme(m_themeModel->index(themeNum)); + QAbstractItemModel * tmodel = m_themeModel->withoutDLC(); + if(!tmodel->rowCount()) return; + quint32 themeNum = rand() % tmodel->rowCount(); + updateTheme(tmodel->index(themeNum,0)); emit themeChanged(m_theme); }