Added back ability to reorder trackers

This commit is contained in:
Christophe Dumez
2011-08-07 15:07:28 +03:00
parent 9066520076
commit ac097b9904
3 changed files with 8 additions and 32 deletions

View File

@@ -100,7 +100,6 @@ void TrackerList::setRowColor(int row, QColor color) {
}
void TrackerList::moveSelectionUp() {
#if LIBTORRENT_VERSION_MINOR < 15
QTorrentHandle h = properties->getCurrentTorrent();
if(!h.is_valid()) {
clear();
@@ -134,11 +133,9 @@ void TrackerList::moveSelectionUp() {
h.replace_trackers(trackers);
// Reannounce
h.force_reannounce();
#endif
}
void TrackerList::moveSelectionDown() {
#if LIBTORRENT_VERSION_MINOR < 15
QTorrentHandle h = properties->getCurrentTorrent();
if(!h.is_valid()) {
clear();
@@ -172,7 +169,6 @@ void TrackerList::moveSelectionDown() {
h.replace_trackers(trackers);
// Reannounce
h.force_reannounce();
#endif
}
void TrackerList::clear() {