Do not launch the relayouting immediately but wait to return to the event loop as that relayouting interferes with observer loading

svn path=/trunk/KDE/kdegraphics/kpdf/; revision=459218
remotes/origin/kpdf
Albert Astals Cid 21 years ago
parent df91a1004e
commit 6a304a7925
  1. 2
      ui/pageview.cpp

@ -273,7 +273,7 @@ void PageView::notifySetup( const QVector< KPDFPage * > & pageSet, bool document
// 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