|
|
|
@ -1725,10 +1725,14 @@ void TorrentHandle::handleSaveResumeDataFailedAlert(const lt::save_resume_data_f
@@ -1725,10 +1725,14 @@ void TorrentHandle::handleSaveResumeDataFailedAlert(const lt::save_resume_data_f
|
|
|
|
|
{ |
|
|
|
|
// if torrent has no metadata we should save dummy fastresume data
|
|
|
|
|
// containing Magnet URI and qBittorrent own resume data only
|
|
|
|
|
if (p->error.value() == lt::errors::no_metadata) |
|
|
|
|
if (p->error.value() == lt::errors::no_metadata) { |
|
|
|
|
handleSaveResumeDataAlert(nullptr); |
|
|
|
|
else |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
LogMsg(tr("Save resume data failed. Torrent: \"%1\", error: \"%2\"") |
|
|
|
|
.arg(name(), QString::fromStdString(p->error.message())), Log::CRITICAL); |
|
|
|
|
m_session->handleTorrentResumeDataFailed(this); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void TorrentHandle::handleFastResumeRejectedAlert(const lt::fastresume_rejected_alert *p) |
|
|
|
|