mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 11:48:56 +03:00
Fix crash upon removing edit locally file provider jobs in edit locally manager
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
8147e831c8
commit
27bc838c9c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue