1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Remove ~duplicated code for tray backed selection

`else` clause already handles KDE5 case
This commit is contained in:
Zetok Zalbavar 2015-10-23 16:13:44 +01:00
parent 636bb91898
commit cd4b02ce6a
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

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