mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
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:
parent
8f633c7c8e
commit
0be674f981
1 changed files with 6 additions and 0 deletions
|
@ -1710,6 +1710,12 @@ if (d->document->handleEvent( e ) )
|
||||||
if ( d->viewportMoveActive )
|
if ( d->viewportMoveActive )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if ( !d->document->isOpened() )
|
||||||
|
{
|
||||||
|
QScrollArea::wheelEvent( e );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int delta = e->delta(),
|
int delta = e->delta(),
|
||||||
vScroll = verticalScrollBar()->value();
|
vScroll = verticalScrollBar()->value();
|
||||||
e->accept();
|
e->accept();
|
||||||
|
|
Loading…
Reference in a new issue