| Summary: | Unable to save (override) without directory permissions | ||
|---|---|---|---|
| Product: | [Applications] kolourpaint | Reporter: | Emmanuel Lepage Vallée <emmanuel.lepage> |
| Component: | general | Assignee: | kolourpaint-support |
| Status: | RESOLVED INTENTIONAL | ||
| Severity: | normal | CC: | martin |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Emmanuel Lepage Vallée
2017-11-22 03:43:37 UTC
The way it's implemented right now is done to ensure an always intact image file: "write all or nothing". It's using Qt's QSaveFile: ########## QSaveFile is an I/O device for writing text and binary files, without losing existing data if the writing operation fails. While writing, the contents will be written to a temporary file, and if no error happened, commit() will move it to the final file. This ensures that no data at the final file is lost in case an error happens while writing, and no partially-written file is ever present at the final location. Always use QSaveFile when saving entire documents to disk. ########## |