mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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);
|
content->setPixmap(*currentPage);
|
||||||
updateContentSize();
|
updateContentSize();
|
||||||
updateVerticalScrollBar();
|
updateVerticalScrollBar();
|
||||||
emit backgroundChanges();
|
|
||||||
emit(pageAvailable(true));
|
|
||||||
|
|
||||||
if(goToFlow->isHidden())
|
if(goToFlow->isHidden())
|
||||||
setFocus(Qt::ShortcutFocusReason);
|
setFocus(Qt::ShortcutFocusReason);
|
||||||
@ -319,6 +317,10 @@ void Viewer::updatePage()
|
|||||||
|
|
||||||
if(currentPage->isNull())
|
if(currentPage->isNull())
|
||||||
setPageUnavailableMessage();
|
setPageUnavailableMessage();
|
||||||
|
else
|
||||||
|
emit(pageAvailable(true));
|
||||||
|
|
||||||
|
emit backgroundChanges();
|
||||||
|
|
||||||
if(restoreMagnifyingGlass)
|
if(restoreMagnifyingGlass)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user