mirror of
https://github.com/YACReader/yacreader
synced 2026-03-15 02:00:04 -04:00
GoToFlow::setNumSlides() is called each time a comic is opened. So when e.g. three comics were opened one after another without restarting YACReader, each of the PictureFlow::centerIndexChanged* signals was connected to GoToFlow::preload three times, which multiplied the number of calls to preload() accordingly. During my testing PictureFlow::centerIndexChanged* signals were never emitted before the first call to GoToFlow::setNumSlides(), so connecting in GoToFlow::GoToFlow() should not cause extra calls to preload().