diff --git a/Changelog b/Changelog index 2b9444579..a067d3133 100644 --- a/Changelog +++ b/Changelog @@ -25,6 +25,7 @@ - BUGFIX: Do not use an addition dialog for torrents from folder scanning - BUGFIX: Catch SIGTERM to exit cleanly (e.g. computer shutdown) - BUGFIX: Improved proxy support code + - BUGFIX: Fixed systray icon tooltip on Windows * Sun Nov 9 2008 - Christophe Dumez - v1.2.1 - BUGFIX: Fixed possible crash when deleting a torrent permanently diff --git a/src/GUI.cpp b/src/GUI.cpp index 53a308597..c0f27cb01 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1422,6 +1422,12 @@ void GUI::checkConnectionStatus() { updateRatio(); // update global informations if(systrayIntegration) { +#ifdef Q_WS_WIN + // Windows does not support html here + QString html =tr("DL speed: %1 KiB/s", "e.g: Download speed: 10 KiB/s").arg(QString(QByteArray::number(BTSession->getPayloadDownloadRate()/1024., 'f', 1))); + html += "\n"; + html += tr("UP speed: %1 KiB/s", "e.g: Upload speed: 10 KiB/s").arg(QString(QByteArray::number(BTSession->getPayloadUploadRate()/1024., 'f', 1))); +#else QString html = "
"; html += tr("qBittorrent"); html += "
"; @@ -1431,6 +1437,7 @@ void GUI::checkConnectionStatus() { html += "
"; html += " "+tr("UP speed: %1 KiB/s", "e.g: Upload speed: 10 KiB/s").arg(QString(QByteArray::number(BTSession->getPayloadUploadRate()/1024., 'f', 1))); html += "
"; +#endif myTrayIcon->setToolTip(html); // tray icon } session_status sessionStatus = BTSession->getSessionStatus();