Commit 25d57cad authored by Yuri Vital's avatar Yuri Vital
Browse files

Transfers are created stopped by default.

TransferData constructor accept started state as an implicit agrument.
When not specified, the default value is false.
So set explicitly to true in calling functions and let the scheduler apply connections limits.

BUG: 352262
parent eabb9026
......@@ -428,7 +428,7 @@ void NewTransferDialog::dialogAccepted()
//sourceUrl is valid, has been checked before
const QUrl sourceUrl = QUrl(ui.urlRequester->text().trimmed());
qCDebug(KGET_DEBUG) << "Downloading" << sourceUrl << "to" << m_destination;
data << KGet::TransferData(sourceUrl, m_destination, group);
data << KGet::TransferData(sourceUrl, m_destination, group, true);
} else {
QList<QUrl> list;
for (int i = 0; i != ui.listWidget->count(); ++i) {
......@@ -449,7 +449,7 @@ void NewTransferDialog::dialogAccepted()
FileDeleter::deleteFile(destUrl);
}
data << KGet::TransferData(sourceUrl, destUrl, group);
data << KGet::TransferData(sourceUrl, destUrl, group, true);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment