Forwardport SVN commit 599376 by pino:

Don't try querying the document if it's closed.

svn path=/trunk/playground/graphics/okular/; revision=599385
This commit is contained in:
Pino Toscano 2006-10-26 20:59:07 +00:00
parent 8f633c7c8e
commit 0be674f981

View file

@ -1710,6 +1710,12 @@ if (d->document->handleEvent( e ) )
if ( d->viewportMoveActive )
return;
if ( !d->document->isOpened() )
{
QScrollArea::wheelEvent( e );
return;
}
int delta = e->delta(),
vScroll = verticalScrollBar()->value();
e->accept();