Implement 'Force Start' feature. Closes #270.

This commit is contained in:
sledgehammer999
2015-04-14 02:22:14 +03:00
parent f555fca5e0
commit 2c5edf8652
10 changed files with 87 additions and 19 deletions

View File

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