Diffusion Krita dd1e9a5788bb

Fix losing user files due to power outage short after saving in Krita

Authored by dkazakov on Oct 3 2019, 4:35 PM.

Description

Fix losing user files due to power outage short after saving in Krita

After we safe a file, we should ask OS to sync buffers to the hard-drive,
otherwise, the file will still be kept in memory. Therefore, if the
user loses power, the file will be lost.

The patch can only be implemented on Qt-level:
https://codereview.qt-project.org/c/qt/qtbase/+/276158

Details

Committed
dkazakovOct 3 2019, 4:36 PM
Parents
R37:38117a736a28: Add logging about the image after it has been loaded
Branches
Unknown
Tags
Unknown