Skip to content

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented May 12, 2023

Fixes #1316

The issue was caused by the focus-in-event handler checking the file status before the duplicate has been created resulting in a further error dialog. This was fixed by putting the document in a working state while duplicate creation is in progress and ignoring focus in events in that state. The file status is checked after save-as completes instead.

@jeremypw jeremypw changed the title Prevent premature file status check when saving as Fix creating duplicates of unwritable files May 12, 2023
@jeremypw jeremypw requested a review from a team May 12, 2023 10:48
@jeremypw jeremypw added the Good First Issue Small, self-contained issue. Good for newcomers, and/or should be an easy fix. label May 12, 2023
Copy link
Contributor

@zeebok zeebok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just the one question but I feel like I am being paranoid 😅

@jeremypw jeremypw merged commit 86de105 into master May 14, 2023
@jeremypw jeremypw deleted the fix-duplicate-unwritable branch May 14, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good First Issue Small, self-contained issue. Good for newcomers, and/or should be an easy fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fails to create duplicate if unwritable

3 participants