# HG changeset patch # User Wuzzy # Date 1558968222 -7200 # Node ID d75ce53d811eec4fc7d8d3d18ca5b30acd7b444c # Parent 39067b45d0fc0400e28cf837a378624d51c69dc2 Background theme detection: Also check if Border.png is present diff -r 39067b45d0fc -r d75ce53d811e 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); }