1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 12:34:19 +00:00

- Display current version in fields when the combobox value is changed (Peer ID spoofing)

This commit is contained in:
Christophe Dumez 2009-12-30 15:55:21 +00:00
parent 2168d5a30e
commit 77b4d97069

View File

@ -805,7 +805,7 @@ void options_imp::enableSpoofingSettings(int index) {
resetPeerVersion_button->setEnabled(true); resetPeerVersion_button->setEnabled(true);
version_label->setEnabled(true); version_label->setEnabled(true);
client_version->setEnabled(true); client_version->setEnabled(true);
client_version->setText(Preferences::getClientVersion()); client_version->setText(Preferences::getDefaultClientVersion("AZ"));
build_label->setEnabled(false); build_label->setEnabled(false);
client_build->setEnabled(false); client_build->setEnabled(false);
client_build->clear(); client_build->clear();
@ -814,10 +814,10 @@ void options_imp::enableSpoofingSettings(int index) {
resetPeerVersion_button->setEnabled(true); resetPeerVersion_button->setEnabled(true);
version_label->setEnabled(true); version_label->setEnabled(true);
client_version->setEnabled(true); client_version->setEnabled(true);
client_version->setText(Preferences::getClientVersion()); client_version->setText(Preferences::getDefaultClientVersion("UT"));
build_label->setEnabled(true); build_label->setEnabled(true);
client_build->setEnabled(true); client_build->setEnabled(true);
client_build->setText(Preferences::getClientBuild()); client_build->setText(Preferences::getDefaultClientBuild("UT"));
break; break;
} }
} }