Background theme detection: Also check if Border.png is present
authorWuzzy <Wuzzy2@mail.ru>
Mon, 27 May 2019 16:43:42 +0200
changeset 15071 d75ce53d811e
parent 15070 39067b45d0fc
child 15072 d59da429d22c
Background theme detection: Also check if Border.png is present
QTfrontend/model/ThemeModel.cpp
--- a/QTfrontend/model/ThemeModel.cpp	Mon May 27 00:04:40 2019 +0200
+++ b/QTfrontend/model/ThemeModel.cpp	Mon May 27 16:43:42 2019 +0200
@@ -161,7 +161,8 @@
         // since they cannot be used for generated maps, but they can be used
         // for image maps.
         QString landtexpath = QString("physfs://Themes/%1/LandTex.png").arg(theme);
-        if (!QFile::exists(landtexpath))
+        QString bordertexpath = QString("physfs://Themes/%1/Border.png").arg(theme);
+        if ((!QFile::exists(landtexpath)) || (!QFile::exists(bordertexpath)))
         {
             dataset.insert(IsBackgroundThemeRole, true);
         }