From 63ad2def91bb68eae578f0990285e5388cda5f99 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 3 Sep 2009 11:05:20 +0000 Subject: [PATCH] - Improve readability of tracker error tooltips - Update uTorrent spoofer to v1.9.4 --- src/bittorrent.cpp | 2 +- src/properties_imp.cpp | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 97844ec24..218a252f8 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -63,7 +63,7 @@ bittorrent::bittorrent() : DHTEnabled(false), preAllocateAll(false), addInPause( // Check if we should spoof utorrent QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent")); if(settings.value(QString::fromUtf8("AzureusSpoof"), false).toBool()) { - s = new session(fingerprint("UT", 1, 8, 3, 0), 0); + s = new session(fingerprint("UT", 1, 8, 4, 0), 0); } else { s = new session(fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0), 0); } diff --git a/src/properties_imp.cpp b/src/properties_imp.cpp index b15fb6446..efe99c0ae 100644 --- a/src/properties_imp.cpp +++ b/src/properties_imp.cpp @@ -454,7 +454,15 @@ void properties::loadTrackers(){ if(errors.contains(current_tracker)) { item->setForeground(QBrush(QColor("red"))); // Set tooltip - item->setToolTip(errors[current_tracker]); + QString msg=""; + unsigned int i=0; + foreach(QString word, errors[current_tracker].split(" ")) { + if(i > 0 && i%5!=1) msg += " "; + msg += word; + if(i> 0 && i%5==0) msg += "\n"; + ++i; + } + item->setToolTip(msg); } else { item->setForeground(QBrush(QColor("green"))); }