mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 07:22:47 -07:00
parent
b68c4e2106
commit
dcdbd02102
1 changed files with 6 additions and 1 deletions
|
@ -1401,7 +1401,12 @@ void SessionImpl::endStartup(ResumeSessionContext *context)
|
|||
context->startupStorage->deleteLater();
|
||||
|
||||
if (context->currentStorageType == ResumeDataStorageType::Legacy)
|
||||
Utils::Fs::removeFile(dbPath);
|
||||
{
|
||||
connect(context->startupStorage, &QObject::destroyed, [dbPath]
|
||||
{
|
||||
Utils::Fs::removeFile(dbPath);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
context->deleteLater();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue