|
|
@ -742,8 +742,8 @@ void TransferListWidget::decreasePrioSelectedTorrents() { |
|
|
|
refreshList(); |
|
|
|
refreshList(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// FIXME: Should work only if the tab is displayed
|
|
|
|
|
|
|
|
void TransferListWidget::topPrioSelectedTorrents() { |
|
|
|
void TransferListWidget::topPrioSelectedTorrents() { |
|
|
|
|
|
|
|
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); |
|
|
@ -754,8 +754,8 @@ void TransferListWidget::topPrioSelectedTorrents() { |
|
|
|
refreshList(); |
|
|
|
refreshList(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// FIXME: Should work only if the tab is displayed
|
|
|
|
|
|
|
|
void TransferListWidget::bottomPrioSelectedTorrents() { |
|
|
|
void TransferListWidget::bottomPrioSelectedTorrents() { |
|
|
|
|
|
|
|
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); |
|
|
|