From d01385a7ac906438ea01971941d4501efd3f7cdb Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 20 Jun 2010 17:35:26 +0000 Subject: [PATCH] Moc bug workaround --- src/trackerlist.cpp | 6 ++++-- src/trackerlist.h | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/trackerlist.cpp b/src/trackerlist.cpp index cc065fb90..0716fdcb9 100644 --- a/src/trackerlist.cpp +++ b/src/trackerlist.cpp @@ -94,8 +94,8 @@ void TrackerList::setRowColor(int row, QColor color) { } } -#if LIBTORRENT_VERSION_MINOR < 15 void TrackerList::moveSelectionUp() { +#if LIBTORRENT_VERSION_MINOR < 15 QTorrentHandle h = properties->getCurrentTorrent(); if(!h.is_valid()) { clear(); @@ -129,9 +129,11 @@ 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(); @@ -165,8 +167,8 @@ void TrackerList::moveSelectionDown() { h.replace_trackers(trackers); // Reannounce h.force_reannounce(); -} #endif +} void TrackerList::clear() { qDeleteAll(tracker_items.values()); diff --git a/src/trackerlist.h b/src/trackerlist.h index 72f0ba5f9..88bc74e36 100644 --- a/src/trackerlist.h +++ b/src/trackerlist.h @@ -61,10 +61,8 @@ protected: public slots: void setRowColor(int row, QColor color); -#if LIBTORRENT_VERSION_MINOR < 15 void moveSelectionUp(); void moveSelectionDown(); -#endif void clear(); void loadStickyItems(const QTorrentHandle &h);