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
remotes/origin/kpdf-3.5 v3.4.91
Albert Astals Cid 21 years ago
parent aebd986369
commit 9a3f55c45a
  1. 2
      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

Loading…
Cancel
Save