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))); }