From 27bc838c9c0c5e78d43ed4aee7a55e994674cd63 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 29 May 2024 00:37:23 +0800 Subject: [PATCH] Fix crash upon removing edit locally file provider jobs in edit locally manager Signed-off-by: Claudio Cambra --- src/gui/editlocallymanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/editlocallymanager.cpp b/src/gui/editlocallymanager.cpp index a67daf9ae55ea..59c25e830b03b 100644 --- a/src/gui/editlocallymanager.cpp +++ b/src/gui/editlocallymanager.cpp @@ -152,7 +152,7 @@ void EditLocallyManager::editLocallyFileProvider(const AccountStatePtr &accountS qCDebug(lcEditLocallyManager) << "Starting to edit file locally with file provider" << relPath << "with token" << token; - const auto removeJob = [this, token] { _editLocallyFpJobs.remove(token); }; + const auto removeJob = [&] { _editLocallyFpJobs.remove(token); }; const auto tryStandardJob = [this, accountState, relPath, token, removeJob] { removeJob(); editLocally(accountState, relPath, token);