From 0be674f981c94c11f5452dd957ada0447dc34a06 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 26 Oct 2006 20:59:07 +0000 Subject: [PATCH] Forwardport SVN commit 599376 by pino: Don't try querying the document if it's closed. svn path=/trunk/playground/graphics/okular/; revision=599385 --- ui/pageview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/pageview.cpp b/ui/pageview.cpp index c92046c5d..f58c92aa3 100644 --- a/ui/pageview.cpp +++ b/ui/pageview.cpp @@ -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();