Skip to content

Fix opening auto-saved file from `KisRecoverNamedAutosaveDialog`

Sharaf Zaman requested to merge szaman/krita:bug-loading-autosave into krita/4.3

I could've ifdef'ed it for safety, but it looks like it fits all OSes?

I've tested this on Android and Linux.

Test Plan

Create/open a file, edit it, wait for auto-save to be triggered (on Android you can also go to home), close the app through an interrupt (C-c). Reopen the same file, a dialog should pop up saying auto saved file exists. Open it and it should be the one, when auto save was triggered.

Formalities Checklist

  • I confirmed this builds.
  • I confirmed Krita ran and the relevant functions work.
  • I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!)
  • I made sure my commits build individually and have good descriptions as per KDE guidelines.
  • I made sure my code conforms to the standards set in the HACKING file.
  • I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.

Merge request reports