mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 01:57:07 -07:00
Updated copyright
This commit is contained in:
parent
5cd376d2c3
commit
9fe64982bb
3 changed files with 64 additions and 16 deletions
|
@ -249,10 +249,7 @@ void TransferListWidget::setSelectedTorrentsLocation() {
|
|||
void TransferListWidget::startSelectedTorrents() {
|
||||
const QStringList hashes = getSelectedTorrentsHashes();
|
||||
foreach(const QString &hash, hashes) {
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
if(h.is_valid() && h.is_paused()) {
|
||||
h.resume();
|
||||
}
|
||||
BTSession->resumeTorrent(hash);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -263,20 +260,14 @@ void TransferListWidget::startVisibleTorrents() {
|
|||
hashes << getHashFromRow(row);
|
||||
}
|
||||
foreach(const QString &hash, hashes) {
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
if(h.is_valid() && h.is_paused()) {
|
||||
h.resume();
|
||||
}
|
||||
BTSession->resumeTorrent(hash);
|
||||
}
|
||||
}
|
||||
|
||||
void TransferListWidget::pauseSelectedTorrents() {
|
||||
const QStringList hashes = getSelectedTorrentsHashes();
|
||||
foreach(const QString &hash, hashes) {
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
if(h.is_valid() && !h.is_paused()) {
|
||||
h.pause();
|
||||
}
|
||||
BTSession->pauseTorrent(hash);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -287,10 +278,7 @@ void TransferListWidget::pauseVisibleTorrents() {
|
|||
hashes << getHashFromRow(row);
|
||||
}
|
||||
foreach(const QString &hash, hashes) {
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
if(h.is_valid() && !h.is_paused()) {
|
||||
h.pause();
|
||||
}
|
||||
BTSession->pauseTorrent(hash);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue