From 3d87cebeac01abc9bfe9dce68294d9cefad5e85d Mon Sep 17 00:00:00 2001 From: Syping Date: Fri, 27 Jan 2023 23:27:57 +0100 Subject: [PATCH] SnapmaticPicture: replace read() with readAll() --- src/SnapmaticPicture.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SnapmaticPicture.cpp b/src/SnapmaticPicture.cpp index 9a61136..3226eac 100644 --- a/src/SnapmaticPicture.cpp +++ b/src/SnapmaticPicture.cpp @@ -366,8 +366,7 @@ bool SnapmaticPicture::preloadFile() return false; } - const qint64 fileMaxSize = (1024 * 1024 * 64); - const QByteArray fileData = picFile.read(fileMaxSize); + const QByteArray fileData = picFile.readAll(); bool ok = p_ragePhoto.load(fileData.constData(), fileData.size()); picFormat = p_ragePhoto.format();