From ede1bd0657b6df1d98a3a78aab52a213a8c6af50 Mon Sep 17 00:00:00 2001 From: thalieht Date: Sat, 12 Sep 2020 17:34:14 +0300 Subject: [PATCH] Don't use HTML in Linux tray tooltip HTML is no longer allowed in Linux tray tooltip's title, only in its subtext. Closes #13030 --- src/gui/mainwindow.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index e7a526a48..e07b75805 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -1540,27 +1540,9 @@ void MainWindow::reloadSessionStats() } #else if (m_systrayIcon) { -#ifdef Q_OS_UNIX - const QString toolTip = QString::fromLatin1( - "
" - "qBittorrent" - "
" - "
" - " %2" - "
" - "
" - " %4" - "
") - .arg(UIThemeManager::instance()->getIconPath("downloading_small") - , tr("DL speed: %1", "e.g: Download speed: 10 KiB/s").arg(Utils::Misc::friendlyUnit(status.payloadDownloadRate, true)) - , UIThemeManager::instance()->getIconPath("seeding") - , tr("UP speed: %1", "e.g: Upload speed: 10 KiB/s").arg(Utils::Misc::friendlyUnit(status.payloadUploadRate, true))); -#else - // OSes such as Windows do not support html here const QString toolTip = QString::fromLatin1("%1\n%2").arg( tr("DL speed: %1", "e.g: Download speed: 10 KiB/s").arg(Utils::Misc::friendlyUnit(status.payloadDownloadRate, true)) , tr("UP speed: %1", "e.g: Upload speed: 10 KiB/s").arg(Utils::Misc::friendlyUnit(status.payloadUploadRate, true))); -#endif // Q_OS_UNIX m_systrayIcon->setToolTip(toolTip); // tray icon } #endif // Q_OS_MACOS