Skip to content

Commit

Permalink
Fix crash upon removing edit locally file provider jobs in edit local…
Browse files Browse the repository at this point in the history
…ly manager

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jun 9, 2024
1 parent f0c37a7 commit a262a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editlocallymanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a262a61

Please sign in to comment.