Solve the issue where the autosave files are created in the parent directory instead of in the directory where the original .kra file is saved
Details
Diff Detail
- Repository
- R37 Krita
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Hi, Dimitri!
Firstly, thank you for your patch! You did a very nice catch!
The only thing that the patch needs is to become a bit more portable. On Windows, we have a different directory separator, so it should be used. And yes, the file should be kept hidden. So the name should be of a form like:
dir + QDir::separator() + . + filename + "-autosave" + extension.
If you fix the issue with the separator, you can push the changes directly to master without further review. If you don't have a commit access, please update the patch and I will push it for you :)
Saving autosaved files as a hiding file.
Replacing the '/' by QDir::separator() in order to have multi-plateform support.
The new patch is cropped at the right :(
Could you please generate a new diff using:
git diff > your_patch.diff
I am not sure but i noticed that the files are still being created in parent directory, i'll test it once again before opening this issue again.