RagePhoto: Fix Qt4 build
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Syping 2020-11-11 19:43:54 +01:00
parent 0c6c6ca9fb
commit 05ccdc6689
1 changed files with 5 additions and 0 deletions

View File

@ -612,7 +612,9 @@ void RagePhoto::save(QIODevice *ioDevice, PhotoFormat photoFormat)
uInt32ToCharLE(&p_endOfFile, uInt32Buffer);
ioDevice->write(uInt32Buffer, 4);
#if QT_VERSION >= 0x050000
ioDevice->aboutToClose();
#endif
}
else if (photoFormat == PhotoFormat::GTA5) {
char uInt32Buffer[4];
@ -703,7 +705,10 @@ void RagePhoto::save(QIODevice *ioDevice, PhotoFormat photoFormat)
ioDevice->seek(p_endOfFile + 260);
ioDevice->write("JEND", 4);
#if QT_VERSION >= 0x050000
ioDevice->aboutToClose();
#endif
}
}