From 470591c38960f9107d4808a81b0cae95cfe9c3e8 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 17 Jun 2018 16:01:11 +0200 Subject: [PATCH] icons: Don't offer the Oxygen fallback if not enabled in CMake If -DWITH_OXYGEN_ICONS is disabled, Quassel will not install its own Oxygen icons, and thus those would be missing if Oxygen were chosen as a fallback. Ensure that the fallback isn't offered in this case even if there happens to be a (runtime-detected) system installation of Oxygen. --- src/qtui/qtui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qtui/qtui.cpp b/src/qtui/qtui.cpp index 3ef32014..d849fc55 100644 --- a/src/qtui/qtui.cpp +++ b/src/qtui/qtui.cpp @@ -274,7 +274,9 @@ std::vector> QtUi::availableIconThemes() const static const std::vector> supported { { "breeze", tr("Breeze") }, { "breeze-dark", tr("Breeze Dark") }, +#ifdef WITH_OYGEN_ICONS { "oxygen", tr("Oxygen") } +#endif }; std::vector> result; -- 2.20.1