mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
Fix possible warnings related to toggleSelectedTorrentsSuperSeeding()
This commit is contained in:
parent
7846afaeb8
commit
7854911d2f
@ -545,8 +545,8 @@ void TransferListWidget::displayDLHoSMenu(const QPoint&){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LIBTORRENT_VERSION_MINOR > 14
|
|
||||||
void TransferListWidget::toggleSelectedTorrentsSuperSeeding() const {
|
void TransferListWidget::toggleSelectedTorrentsSuperSeeding() const {
|
||||||
|
#if LIBTORRENT_VERSION_MINOR > 14
|
||||||
const QStringList hashes = getSelectedTorrentsHashes();
|
const QStringList hashes = getSelectedTorrentsHashes();
|
||||||
foreach(const QString &hash, hashes) {
|
foreach(const QString &hash, hashes) {
|
||||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||||
@ -554,8 +554,8 @@ void TransferListWidget::toggleSelectedTorrentsSuperSeeding() const {
|
|||||||
h.super_seeding(!h.super_seeding());
|
h.super_seeding(!h.super_seeding());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void TransferListWidget::toggleSelectedTorrentsSequentialDownload() const {
|
void TransferListWidget::toggleSelectedTorrentsSequentialDownload() const {
|
||||||
const QStringList hashes = getSelectedTorrentsHashes();
|
const QStringList hashes = getSelectedTorrentsHashes();
|
||||||
|
@ -99,9 +99,7 @@ protected slots:
|
|||||||
void torrentDoubleClicked(const QModelIndex& index);
|
void torrentDoubleClicked(const QModelIndex& index);
|
||||||
void displayListMenu(const QPoint&);
|
void displayListMenu(const QPoint&);
|
||||||
void currentChanged(const QModelIndex& current, const QModelIndex&);
|
void currentChanged(const QModelIndex& current, const QModelIndex&);
|
||||||
#if LIBTORRENT_VERSION_MINOR > 14
|
|
||||||
void toggleSelectedTorrentsSuperSeeding() const;
|
void toggleSelectedTorrentsSuperSeeding() const;
|
||||||
#endif
|
|
||||||
void toggleSelectedTorrentsSequentialDownload() const;
|
void toggleSelectedTorrentsSequentialDownload() const;
|
||||||
void toggleSelectedFirstLastPiecePrio() const;
|
void toggleSelectedFirstLastPiecePrio() const;
|
||||||
void askNewLabelForSelection();
|
void askNewLabelForSelection();
|
||||||
|
Loading…
Reference in New Issue
Block a user