BUGFIX: Priority actions are only effective if the transfer list tab is displayed

This commit is contained in:
Christophe Dumez
2010-08-15 07:46:53 +00:00
parent 0144611b9d
commit efa52b62b1
2 changed files with 3 additions and 2 deletions

View File

@@ -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 <chris@qbittorrent.org> - v2.3.0
- FEATURE: Simplified torrent root folder renaming/truncating (< v2.3.0 is no longer forward compatible)

View File

@@ -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);