From 31c7306bd2b6618fc351c23c08fabb4705d0b227 Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Thu, 8 Dec 2022 08:33:55 +0300 Subject: [PATCH] Correctly load folder based UI theme PR #18173. --- src/gui/uithememanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/uithememanager.cpp b/src/gui/uithememanager.cpp index 54d9f6623..1253646b4 100644 --- a/src/gui/uithememanager.cpp +++ b/src/gui/uithememanager.cpp @@ -140,7 +140,7 @@ namespace std::unique_ptr createUIThemeSource(const Path &themePath) { if (themePath.filename() == CONFIG_FILE_NAME) - return std::make_unique(themePath); + return std::make_unique(themePath.parentPath()); if ((themePath.hasExtension(u".qbtheme"_qs)) && QResource::registerResource(themePath.data(), u"/uitheme"_qs))