QTfrontend/ui/widget/mapContainer.cpp
changeset 14921 7ced40e21b2c
parent 14836 b9437746bffb
child 15010 5d8068ee16fc
equal deleted inserted replaced
14920:06af4f0a92bd 14921:7ced40e21b2c
  1217         {
  1217         {
  1218             // Fall back to a default theme if current theme is a background theme or hidden
  1218             // Fall back to a default theme if current theme is a background theme or hidden
  1219             QModelIndexList mdl = m_themeModel->match(m_themeModel->index(0), ThemeModel::ActualNameRole, m_theme);
  1219             QModelIndexList mdl = m_themeModel->match(m_themeModel->index(0), ThemeModel::ActualNameRole, m_theme);
  1220             if (mdl.size() > 0)
  1220             if (mdl.size() > 0)
  1221             {
  1221             {
  1222                 if ((mdl.at(0).data(ThemeModel::Roles::IsBackgroundThemeRole).toBool() == true) || (mdl.at(0).data(ThemeModel::Roles::IsHiddenRole).toBool() == true))
  1222                 if ((mdl.at(0).data(ThemeModel::IsBackgroundThemeRole).toBool() == true) || (mdl.at(0).data(ThemeModel::IsHiddenRole).toBool() == true))
  1223                 {
  1223                 {
  1224                     selectedTheme = "Nature";
  1224                     selectedTheme = "Nature";
  1225                 }
  1225                 }
  1226             }
  1226             }
  1227             setTheme(selectedTheme);
  1227             setTheme(selectedTheme);