From 05ccdc66892e0c1f834b45d4b23f2d72e26c4617 Mon Sep 17 00:00:00 2001 From: Syping Date: Wed, 11 Nov 2020 19:43:54 +0100 Subject: [PATCH] RagePhoto: Fix Qt4 build --- RagePhoto.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RagePhoto.cpp b/RagePhoto.cpp index 8ed7261..8d69fce 100644 --- a/RagePhoto.cpp +++ b/RagePhoto.cpp @@ -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 } }