fixed goToFlow bug (first load) in Qt >= 5

This commit is contained in:
Luis Ángel San Martín 2013-10-28 18:07:00 +01:00
parent 4c31cd661b
commit e49a05d3bc

View File

@ -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);