From 7854911d2fdf3398467dbd17d303a1ccbe12f39e Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 10 Aug 2011 21:44:37 +0300 Subject: [PATCH] Fix possible warnings related to toggleSelectedTorrentsSuperSeeding() --- src/transferlistwidget.cpp | 4 ++-- src/transferlistwidget.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index a05695c00..f7e964033 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -545,8 +545,8 @@ void TransferListWidget::displayDLHoSMenu(const QPoint&){ } } -#if LIBTORRENT_VERSION_MINOR > 14 void TransferListWidget::toggleSelectedTorrentsSuperSeeding() const { +#if LIBTORRENT_VERSION_MINOR > 14 const QStringList hashes = getSelectedTorrentsHashes(); foreach(const QString &hash, hashes) { QTorrentHandle h = BTSession->getTorrentHandle(hash); @@ -554,8 +554,8 @@ void TransferListWidget::toggleSelectedTorrentsSuperSeeding() const { h.super_seeding(!h.super_seeding()); } } -} #endif +} void TransferListWidget::toggleSelectedTorrentsSequentialDownload() const { const QStringList hashes = getSelectedTorrentsHashes(); diff --git a/src/transferlistwidget.h b/src/transferlistwidget.h index 807cfb3d9..27b04725c 100644 --- a/src/transferlistwidget.h +++ b/src/transferlistwidget.h @@ -99,9 +99,7 @@ protected slots: void torrentDoubleClicked(const QModelIndex& index); void displayListMenu(const QPoint&); void currentChanged(const QModelIndex& current, const QModelIndex&); -#if LIBTORRENT_VERSION_MINOR > 14 void toggleSelectedTorrentsSuperSeeding() const; -#endif void toggleSelectedTorrentsSequentialDownload() const; void toggleSelectedFirstLastPiecePrio() const; void askNewLabelForSelection();