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 Jul 22, 2024
1 parent 8147e83 commit 27bc838
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 27bc838

Please sign in to comment.