Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix creating duplicates of unwritable files #1318

Merged
merged 2 commits into from
May 14, 2023
Merged

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 😅

src/Services/Document.vala Show resolved Hide resolved
@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
2 participants