Browse Source

Fix possible warnings related to toggleSelectedTorrentsSuperSeeding()

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
7854911d2f
  1. 4
      src/transferlistwidget.cpp
  2. 2
      src/transferlistwidget.h

4
src/transferlistwidget.cpp

@ -545,8 +545,8 @@ void TransferListWidget::displayDLHoSMenu(const QPoint&){ @@ -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 { @@ -554,8 +554,8 @@ void TransferListWidget::toggleSelectedTorrentsSuperSeeding() const {
h.super_seeding(!h.super_seeding());
}
}
}
#endif
}
void TransferListWidget::toggleSelectedTorrentsSequentialDownload() const {
const QStringList hashes = getSelectedTorrentsHashes();

2
src/transferlistwidget.h

@ -99,9 +99,7 @@ protected slots: @@ -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();

Loading…
Cancel
Save