Browse Source

- Improve readability of tracker error tooltips

- Update uTorrent spoofer to v1.9.4
adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
63ad2def91
  1. 2
      src/bittorrent.cpp
  2. 10
      src/properties_imp.cpp

2
src/bittorrent.cpp

@ -63,7 +63,7 @@ bittorrent::bittorrent() : DHTEnabled(false), preAllocateAll(false), addInPause( @@ -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);
}

10
src/properties_imp.cpp

@ -454,7 +454,15 @@ void properties::loadTrackers(){ @@ -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")));
}

Loading…
Cancel
Save