mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
- Added option to disable peer host name resolution (disabled as a default)
- Fix several other bugs related to properties and preferences
This commit is contained in:
@@ -92,7 +92,7 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, TransferListWidget *transfer
|
||||
progressBar->setForegroundColor(Qt::blue);
|
||||
ProgressHLayout->insertWidget(1, progressBar);
|
||||
// Peers list
|
||||
peersList = new PeerListWidget();
|
||||
peersList = new PeerListWidget(this);
|
||||
peerpage_layout->addWidget(peersList);
|
||||
// Pointers init
|
||||
progressBarUpdater = 0;
|
||||
@@ -144,6 +144,7 @@ void PropertiesWidget::slide() {
|
||||
}
|
||||
|
||||
void PropertiesWidget::clear() {
|
||||
qDebug("Clearing torrent properties");
|
||||
save_path->clear();
|
||||
lbl_creationDate->clear();
|
||||
hash_lbl->clear();
|
||||
@@ -155,6 +156,7 @@ void PropertiesWidget::clear() {
|
||||
wasted->clear();
|
||||
upTotal->clear();
|
||||
dlTotal->clear();
|
||||
peersList->clear();
|
||||
lbl_uplimit->clear();
|
||||
lbl_dllimit->clear();
|
||||
lbl_elapsed->clear();
|
||||
@@ -165,6 +167,10 @@ void PropertiesWidget::clear() {
|
||||
setEnabled(false);
|
||||
}
|
||||
|
||||
const QTorrentHandle& PropertiesWidget::getCurrentTorrent() const {
|
||||
return h;
|
||||
}
|
||||
|
||||
void PropertiesWidget::loadTorrentInfos(QTorrentHandle &_h) {
|
||||
h = _h;
|
||||
if(!h.is_valid()) {
|
||||
@@ -258,8 +264,9 @@ void PropertiesWidget::saveSettings() {
|
||||
}
|
||||
}
|
||||
|
||||
void PropertiesWidget::loadPeers() {
|
||||
// TODO
|
||||
void PropertiesWidget::reloadPreferences() {
|
||||
// Take program preferences into consideration
|
||||
peersList->updatePeerHostNameResolutionState();
|
||||
}
|
||||
|
||||
void PropertiesWidget::loadDynamicData() {
|
||||
|
||||
Reference in New Issue
Block a user