mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
For unknown reason KautoSaveFile don't write the file on Windows if file is open in another part of the code. No error is returned and use the method : qint64 QIODevice::write(const QByteArray &byteArray) return the good number of bytes written but the real file stay empty. Probably the problem don't come from KautoSaveFile but QFileDevice or QIODevice on windows. The fix consist to open the file just before write on it and close it just after.
11 KiB
11 KiB