equal
deleted
inserted
replaced
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); |