-
Notifications
You must be signed in to change notification settings - Fork 15
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
Now shows warning before closing unsaved note #25
Conversation
I think I understood what you suggested, and I have changed my code to follow the coding guidelines. |
Man these invisible trailing tabs get me everytime. Thanks for pointing them out. |
A couple of issues:
|
I've changed it exactly how you said, Ready for review! |
We good now, chief(s)? :)) |
I checked out the PR again and now, after clicking "Save" in the alert, the file dialog blinks into existence before the app cquits without saving... |
I just removed the checked out branch and re-fetched it. Still seeing the same behaviour on gcc2. Using gcc8, it crashes with https://linx.li/takenotes-99812-debug-15-12-2019-19-23-02.report |
Weird. I honestly have no clue why this would happen. |
It crashes on x86 (gcc8) for me too. Also, on gcc2, if you open an existing note and then quit without editing it at all, you can't quit without seeing the dialog first. @R4H33M can you fix it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't work when opening an existing note and then quit without changing the note.
One more bug: the dialog doesn't pop up if you change the note and then close the window. This is probably what @humdingerb was talking about. |
How do we want to continue on here? The crash also disappears on gcc2 when built normally when changing the |
I think the two non-crash bugs should be fixed first and then the crash tracked down.
That's weird. |
Oh hello. I was just working on fixing these issues, and through my testing I see very strange and unique behaviour - these bugs do not seem straightforward to fix. They seem really hard, but I will continue attempting to fix this bug, and will update you as I go along. Any support would be greatly appreciated. Also, it might be a few days before we reach a potential solution. |
There's been a few other merged pull requests on TakeNotes since this pull request was first opened. Please check it with the latest upstream changes to see if it affects this code at all. |
So what's the status on this one? There's been a couple of other merged pull requests recently so I'm assuming it needs to at least be rebased? |
Agreed. |
I am closing this PR, as I will be starting over with fixing issue #13. |
Needed to refactor the quit logic of the app, but I think now the code is cleaner.
Fixes #13