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);