mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
committed by
GitHub
parent
3a2e73cc94
commit
94e9e9fdb2
@@ -1390,7 +1390,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();
|
||||
|
||||
Reference in New Issue
Block a user