From 18a240d85b912f97be3ca248357c72ba1b98981a Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 31 Oct 2024 15:19:55 +0100 Subject: [PATCH] Core: Don't offer QDS themes in QtC and vice versa Change-Id: I62d44e6fbff1d9dbbe27d36172d29d9576e1df62 Reviewed-by: hjk --- src/plugins/coreplugin/themechooser.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/coreplugin/themechooser.cpp b/src/plugins/coreplugin/themechooser.cpp index 2903e573cac..be0d28a2868 100644 --- a/src/plugins/coreplugin/themechooser.cpp +++ b/src/plugins/coreplugin/themechooser.cpp @@ -176,9 +176,7 @@ static void addThemesFromPath(const QString &path, QList *themes) const QStringList themeList = themeDir.entryList(); for (const QString &fileName : std::as_const(themeList)) { QString id = QFileInfo(fileName).completeBaseName(); - bool addTheme = true; - if (Core::ICore::isQtDesignStudio()) - addTheme = id.startsWith("design"); + const bool addTheme = Core::ICore::isQtDesignStudio() == id.startsWith("design"); if (addTheme) themes->append(ThemeEntry(Id::fromString(id), themeDir.absoluteFilePath(fileName))); }