From e49a05d3bc90cab453ba3d7841575ef16eab8498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 28 Oct 2013 18:07:00 +0100 Subject: [PATCH] fixed goToFlow bug (first load) in Qt >= 5 --- common/yacreader_flow_gl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/yacreader_flow_gl.cpp b/common/yacreader_flow_gl.cpp index 8aefecfa..a8d89e34 100644 --- a/common/yacreader_flow_gl.cpp +++ b/common/yacreader_flow_gl.cpp @@ -1033,7 +1033,7 @@ void YACReaderComicFlowGL::setImagePaths(QStringList paths) worker->reset(); reset(); numObjects = 0; - if(lazyPopulateObjects!=-1) + if(lazyPopulateObjects!=-1 || hasBeenInitialized) YACReaderFlowGL::populate(paths.size()); lazyPopulateObjects = paths.size(); this->paths = paths; @@ -1228,7 +1228,7 @@ void YACReaderPageFlowGL::updateImageData() void YACReaderPageFlowGL::populate(int n) { worker->reset(); - if(lazyPopulateObjects!=-1) + if(lazyPopulateObjects!=-1 || hasBeenInitialized) YACReaderFlowGL::populate(n); lazyPopulateObjects = n; imagesReady = QVector (n,false);