From 26c69fe6d475f58e15752f903d197d92e74fdf32 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 15 Aug 2010 07:45:20 +0000 Subject: [PATCH] Priority actions are only effective if the transfer list tab is displayed --- src/transferlistwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index 428f3f636..8e8b0fe67 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -718,8 +718,8 @@ void TransferListWidget::deleteSelectedTorrents() { } } -// FIXME: Should work only if the tab is displayed void TransferListWidget::increasePrioSelectedTorrents() { + if(main_window->getCurrentTabWidget() != this) return; const QStringList hashes = getSelectedTorrentsHashes(); foreach(const QString &hash, hashes) { QTorrentHandle h = BTSession->getTorrentHandle(hash); @@ -730,8 +730,8 @@ void TransferListWidget::increasePrioSelectedTorrents() { refreshList(); } -// FIXME: Should work only if the tab is displayed void TransferListWidget::decreasePrioSelectedTorrents() { + if(main_window->getCurrentTabWidget() != this) return; const QStringList hashes = getSelectedTorrentsHashes(); foreach(const QString &hash, hashes) { QTorrentHandle h = BTSession->getTorrentHandle(hash);