mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
committed by
GitHub
parent
3a2e73cc94
commit
94e9e9fdb2
@@ -1390,7 +1390,12 @@ void SessionImpl::endStartup(ResumeSessionContext *context)
|
|||||||
context->startupStorage->deleteLater();
|
context->startupStorage->deleteLater();
|
||||||
|
|
||||||
if (context->currentStorageType == ResumeDataStorageType::Legacy)
|
if (context->currentStorageType == ResumeDataStorageType::Legacy)
|
||||||
Utils::Fs::removeFile(dbPath);
|
{
|
||||||
|
connect(context->startupStorage, &QObject::destroyed, [dbPath]
|
||||||
|
{
|
||||||
|
Utils::Fs::removeFile(dbPath);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
context->deleteLater();
|
context->deleteLater();
|
||||||
|
|||||||
Reference in New Issue
Block a user