Bug 409445

Summary: No way to cancel autosave after trying to close the window
Product: [Applications] krita Reporter: Tiar <tamtamy.tymona>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tiar 2019-07-03 08:02:49 UTC
SUMMARY
If you try to close the window during autosaving, it's not possible to close Krita before the autosaving finishes - it's not possible to cancel it.


STEPS TO REPRODUCE
1. Have a big document (big enough for saving to take several minutes).
2. Make a change.
3. Wait for Autosave to kick in.
4. Click on "X" button.


OBSERVED RESULT
The "Wait for saving to complete..." dialog is shown. There is no way to cancel autosaving now because the dialog is in focus, so clicking on the cancel button doesn't do anything.

EXPECTED RESULT
There should be a way to cancel autosaving when the user made a mistake of trying to close when autosaving was in action.


SOFTWARE/OS VERSIONS
Windows: 10
Qt Version: 5.12.2
Krita version: git edb2c8414b 

ADDITIONAL INFORMATION
I know you can cancel autosaving before closing Krita, but still, for a big documents waiting for it to finish can take a long time, so one mistake can lead to several minutes wasted (if you for example wanted to close and reopen Krita for any reason, like bisecting or releasing the memory taken by Krita).

Actually, I'm not sure but I think that if I cancel the autosaving and then immediately try to close the window, I get the same message (that I need to wait for saving to finish).
Comment 1 Halla Rempt 2020-05-04 11:38:52 UTC
Yes, I've seen this happen too.