QTfrontend/model/ThemeModel.cpp
changeset 15066 d75ce53d811e
parent 14828 8ed0c3761640
equal deleted inserted replaced
15065:39067b45d0fc 15066:d75ce53d811e
   159 
   159 
   160         // Themes without land textures are considered "background themes"
   160         // Themes without land textures are considered "background themes"
   161         // since they cannot be used for generated maps, but they can be used
   161         // since they cannot be used for generated maps, but they can be used
   162         // for image maps.
   162         // for image maps.
   163         QString landtexpath = QString("physfs://Themes/%1/LandTex.png").arg(theme);
   163         QString landtexpath = QString("physfs://Themes/%1/LandTex.png").arg(theme);
   164         if (!QFile::exists(landtexpath))
   164         QString bordertexpath = QString("physfs://Themes/%1/Border.png").arg(theme);
       
   165         if ((!QFile::exists(landtexpath)) || (!QFile::exists(bordertexpath)))
   165         {
   166         {
   166             dataset.insert(IsBackgroundThemeRole, true);
   167             dataset.insert(IsBackgroundThemeRole, true);
   167         }
   168         }
   168 
   169 
   169         // detect if theme is dlc
   170         // detect if theme is dlc