From 9a3f55c45aebdda41f6c8ab14e49046c0f92a7e4 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sat, 10 Sep 2005 12:01:26 +0000 Subject: [PATCH] Do not launch the relayouting immediately but wait to return to the event loop as that relayouting interferes with observer loading svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=459215 --- ui/pageview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/pageview.cpp b/ui/pageview.cpp index 3c000f70f..c3fd0e331 100644 --- a/ui/pageview.cpp +++ b/ui/pageview.cpp @@ -272,7 +272,7 @@ void PageView::notifySetup( const QValueVector< KPDFPage * > & pageSet, bool doc // Need slotRelayoutPages() here instead of d->dirtyLayout = true // because opening a pdf from another pdf will not trigger a viewportchange // so pages are never relayouted - slotRelayoutPages(); + QTimer::singleShot(0, this, SLOT(slotRelayoutPages())); else { // update the mouse cursor when closing because we may have close through a link and