mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed goToFlow bug (first load) in Qt >= 5
This commit is contained in:
parent
4c31cd661b
commit
e49a05d3bc
@ -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<bool> (n,false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user