mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
Drop libtorrent 0.16.x support.
This commit is contained in:
@@ -399,7 +399,6 @@ void TrackerList::editSelectedTracker() {
|
||||
}
|
||||
}
|
||||
|
||||
#if LIBTORRENT_VERSION_NUM >= 10000
|
||||
void TrackerList::reannounceSelected() {
|
||||
QList<QTreeWidgetItem *> selected_items = selectedItems();
|
||||
if (selected_items.isEmpty()) return;
|
||||
@@ -427,8 +426,6 @@ void TrackerList::reannounceSelected() {
|
||||
loadTrackers();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void TrackerList::showTrackerListMenu(QPoint) {
|
||||
BitTorrent::TorrentHandle *const torrent = properties->getCurrentTorrent();
|
||||
if (!torrent) return;
|
||||
@@ -444,14 +441,10 @@ void TrackerList::showTrackerListMenu(QPoint) {
|
||||
copyAct = menu.addAction(GuiIconProvider::instance()->getIcon("edit-copy"), tr("Copy tracker URL"));
|
||||
editAct = menu.addAction(GuiIconProvider::instance()->getIcon("edit-rename"),tr("Edit selected tracker URL"));
|
||||
}
|
||||
#if LIBTORRENT_VERSION_NUM >= 10000
|
||||
QAction *reannounceSelAct = NULL;
|
||||
#endif
|
||||
QAction *reannounceAct = NULL;
|
||||
if (!torrent->isPaused()) {
|
||||
#if LIBTORRENT_VERSION_NUM >= 10000
|
||||
reannounceSelAct = menu.addAction(GuiIconProvider::instance()->getIcon("view-refresh"), tr("Force reannounce to selected trackers"));
|
||||
#endif
|
||||
menu.addSeparator();
|
||||
reannounceAct = menu.addAction(GuiIconProvider::instance()->getIcon("view-refresh"), tr("Force reannounce to all trackers"));
|
||||
}
|
||||
@@ -469,12 +462,10 @@ void TrackerList::showTrackerListMenu(QPoint) {
|
||||
deleteSelectedTrackers();
|
||||
return;
|
||||
}
|
||||
#if LIBTORRENT_VERSION_NUM >= 10000
|
||||
if (act == reannounceSelAct) {
|
||||
reannounceSelected();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
if (act == reannounceAct) {
|
||||
BitTorrent::TorrentHandle *h = properties->getCurrentTorrent();
|
||||
h->forceReannounce();
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
#include <QList>
|
||||
#include <QClipboard>
|
||||
|
||||
#include <libtorrent/version.hpp>
|
||||
#include "propertieswidget.h"
|
||||
|
||||
enum TrackerListColumn {COL_TIER, COL_URL, COL_STATUS, COL_PEERS, COL_MSG};
|
||||
@@ -79,9 +78,7 @@ public slots:
|
||||
void loadTrackers();
|
||||
void askForTrackers();
|
||||
void copyTrackerUrl();
|
||||
#if LIBTORRENT_VERSION_NUM >= 10000
|
||||
void reannounceSelected();
|
||||
#endif
|
||||
void deleteSelectedTrackers();
|
||||
void editSelectedTracker();
|
||||
void showTrackerListMenu(QPoint);
|
||||
|
||||
Reference in New Issue
Block a user