mirror of
				https://github.com/YACReader/yacreader
				synced 2025-10-31 16:25:15 -04:00 
			
		
		
		
	Don't emit pageAvailable unless it is available.
This commit is contained in:
		| @ -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) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user