Browse Source

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

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
26c69fe6d4
  1. 4
      src/transferlistwidget.cpp

4
src/transferlistwidget.cpp

@ -718,8 +718,8 @@ void TransferListWidget::deleteSelectedTorrents() {
} }
} }
// FIXME: Should work only if the tab is displayed
void TransferListWidget::increasePrioSelectedTorrents() { void TransferListWidget::increasePrioSelectedTorrents() {
if(main_window->getCurrentTabWidget() != this) return;
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);
@ -730,8 +730,8 @@ void TransferListWidget::increasePrioSelectedTorrents() {
refreshList(); refreshList();
} }
// FIXME: Should work only if the tab is displayed
void TransferListWidget::decreasePrioSelectedTorrents() { void TransferListWidget::decreasePrioSelectedTorrents() {
if(main_window->getCurrentTabWidget() != this) return;
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);

Loading…
Cancel
Save