Disable action "View -> Auto Fit" when no document is opened

REVIEW: 115776
This commit is contained in:
Alexander Potashev 2014-02-16 18:09:15 +01:00 committed by Albert Astals Cid
parent a385cb2831
commit f68c26bbea

View file

@ -1007,6 +1007,8 @@ void PageView::updateActionState( bool haspages, bool documentChanged, bool hasf
d->aZoomFitWidth->setEnabled( haspages );
if ( d->aZoomFitPage )
d->aZoomFitPage->setEnabled( haspages );
if ( d->aZoomAutoFit )
d->aZoomAutoFit->setEnabled( haspages );
if ( d->aZoom )
{