From efa52b62b1e4327f453f26184d1c68f08971badd Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 15 Aug 2010 07:46:53 +0000 Subject: [PATCH] BUGFIX: Priority actions are only effective if the transfer list tab is displayed --- Changelog | 1 + src/transferlistwidget.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index a1923d894..3368f0182 100644 --- a/Changelog +++ b/Changelog @@ -4,6 +4,7 @@ - BUGFIX: Remember previously selected paths in torrent creation dialog - BUGFIX: Added missing right-click menu icon in Web UI - BUGFIX: Fix speed limit sliders initialization in Web UI + - BUGFIX: Priority actions are only effective if the transfer list tab is displayed * Tue Jul 27 2010 - Christophe Dumez - v2.3.0 - FEATURE: Simplified torrent root folder renaming/truncating (< v2.3.0 is no longer forward compatible) diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index bccecb18a..72d7af4d2 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);