mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-09 06:17:58 +00:00
- Improve readability of tracker error tooltips
- Update uTorrent spoofer to v1.9.4
This commit is contained in:
parent
f790b80aa3
commit
63ad2def91
@ -63,7 +63,7 @@ bittorrent::bittorrent() : DHTEnabled(false), preAllocateAll(false), addInPause(
|
|||||||
// Check if we should spoof utorrent
|
// Check if we should spoof utorrent
|
||||||
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
||||||
if(settings.value(QString::fromUtf8("AzureusSpoof"), false).toBool()) {
|
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 {
|
} else {
|
||||||
s = new session(fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0), 0);
|
s = new session(fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0), 0);
|
||||||
}
|
}
|
||||||
|
@ -454,7 +454,15 @@ void properties::loadTrackers(){
|
|||||||
if(errors.contains(current_tracker)) {
|
if(errors.contains(current_tracker)) {
|
||||||
item->setForeground(QBrush(QColor("red")));
|
item->setForeground(QBrush(QColor("red")));
|
||||||
// Set tooltip
|
// 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 {
|
} else {
|
||||||
item->setForeground(QBrush(QColor("green")));
|
item->setForeground(QBrush(QColor("green")));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user