mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
parent
b68c4e2106
commit
dcdbd02102
@ -1401,7 +1401,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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user