Check for write error in save() if the disk is full

Authored by djarvie on Jun 4 2020, 11:33 PM.

Description

Check for write error in save() if the disk is full

QSaveFile::write() doesn't return an error if the write fails because
the disk is full, at least on Linux when writing to an unnamed
temporary file. This fix works around this by checking that the file
size is the same as the number of bytes requested to be written, and
if not, returning an error.

BUG: 370708

Details

Committed
djarvieJun 10 2020, 10:58 PM
Parents
R172:d5968e55d509: Correct icon names for recurring to-dos
Branches
Unknown
Tags
Unknown