icons: Don't offer the Oxygen fallback if not enabled in CMake
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 17 Jun 2018 14:01:11 +0000 (16:01 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 17 Jun 2018 17:20:09 +0000 (19:20 +0200)
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

index 3ef3201..d849fc5 100644 (file)
@@ -274,7 +274,9 @@ std::vector<std::pair<QString, QString>> QtUi::availableIconThemes() const
     static const std::vector<std::pair<QString, QString>> supported {
         { "breeze", tr("Breeze") },
         { "breeze-dark", tr("Breeze Dark") },
+#ifdef WITH_OYGEN_ICONS
         { "oxygen", tr("Oxygen") }
+#endif
     };
 
     std::vector<std::pair<QString, QString>> result;