mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Don't emit pageAvailable unless it is available.
This commit is contained in:
parent
103f8caae5
commit
4e0d2644fb
@ -308,8 +308,6 @@ void Viewer::updatePage()
|
||||
content->setPixmap(*currentPage);
|
||||
updateContentSize();
|
||||
updateVerticalScrollBar();
|
||||
emit backgroundChanges();
|
||||
emit(pageAvailable(true));
|
||||
|
||||
if(goToFlow->isHidden())
|
||||
setFocus(Qt::ShortcutFocusReason);
|
||||
@ -319,6 +317,10 @@ void Viewer::updatePage()
|
||||
|
||||
if(currentPage->isNull())
|
||||
setPageUnavailableMessage();
|
||||
else
|
||||
emit(pageAvailable(true));
|
||||
|
||||
emit backgroundChanges();
|
||||
|
||||
if(restoreMagnifyingGlass)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user