From cd4b02ce6ad2176c96010f7cb8e16c7bb5e899fe Mon Sep 17 00:00:00 2001 From: Zetok Zalbavar Date: Fri, 23 Oct 2015 16:13:44 +0100 Subject: [PATCH] Remove ~duplicated code for tray backed selection `else` clause already handles KDE5 case --- src/widget/systemtrayicon.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/widget/systemtrayicon.cpp b/src/widget/systemtrayicon.cpp index 9298516d3..69c36f1e6 100644 --- a/src/widget/systemtrayicon.cpp +++ b/src/widget/systemtrayicon.cpp @@ -88,16 +88,9 @@ SystemTrayIcon::SystemTrayIcon() g_signal_connect(gtkIcon, "button-release-event", G_CALLBACK(callbackButtonClick), this); } #endif - else if (desktop == "kde" && getenv("KDE_SESSION_VERSION") == QStringLiteral("5")) - { - qDebug() << "Using the Qt backend on KDE5"; - qtIcon = new QSystemTrayIcon; - backendType = SystrayBackendType::Qt; - connect(qtIcon, &QSystemTrayIcon::activated, this, &SystemTrayIcon::activated); - } else { - qDebug() << "Using the Qt backend, because nothing else matches"; + qDebug() << "Using the Qt backend"; qtIcon = new QSystemTrayIcon; backendType = SystrayBackendType::Qt; connect(qtIcon, &QSystemTrayIcon::activated, this, &SystemTrayIcon::activated);