mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Implement 'Force Start' feature. Closes #270.
This commit is contained in:
@@ -817,10 +817,10 @@ void QBtSession::pauseTorrent(const QString &hash) {
|
||||
}
|
||||
}
|
||||
|
||||
void QBtSession::resumeTorrent(const QString &hash) {
|
||||
void QBtSession::resumeTorrent(const QString &hash, const bool force) {
|
||||
QTorrentHandle h = getTorrentHandle(hash);
|
||||
if (h.is_paused()) {
|
||||
h.resume();
|
||||
if (h.is_paused() || (h.is_forced() != force)) {
|
||||
h.resume(force);
|
||||
emit resumedTorrent(h);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user