--- a/QTfrontend/ui/widget/mapContainer.cpp Wed Jan 24 21:05:34 2018 +0100
+++ b/QTfrontend/ui/widget/mapContainer.cpp Wed Jan 24 22:20:10 2018 +0100
@@ -984,7 +984,7 @@
{
m_theme = selectedTheme = current.data(ThemeModel::ActualNameRole).toString();
m_themeID = current.row();
- QIcon icon = qVariantValue<QIcon>(current.data(Qt::DecorationRole));
+ QIcon icon = current.data(Qt::DecorationRole).value<QIcon>();
//QSize iconSize = icon.actualSize(QSize(65535, 65535));
//btnTheme->setFixedHeight(64);
//btnTheme->setIconSize(iconSize);