From 3bb56fb47d47b694b29d71377a40bfad7222776d Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 2 Mar 2018 10:48:55 +0100 Subject: [PATCH] ThemeManager: Fix showing duplicated themes --- src/lib/preferences/thememanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/preferences/thememanager.cpp b/src/lib/preferences/thememanager.cpp index f99e45065..134765b94 100644 --- a/src/lib/preferences/thememanager.cpp +++ b/src/lib/preferences/thememanager.cpp @@ -129,7 +129,7 @@ ThemeManager::Theme ThemeManager::parseTheme(const QString &path, const QString info.license = QzTools::readAllFileContents(path + licensePath); } - if (info.name.isEmpty() || m_themeHash.contains(info.name)) { + if (info.name.isEmpty() || m_themeHash.contains(name)) { return info; }