[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdegraphics/kolourpaint
From: Clarence Dang <dang () kde ! org>
Date: 2007-10-11 10:26:07
Message-ID: 1192098367.687583.24872.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 724087 by dang:
Avoid crash in scrollview debug.
M +14 -4 kpmainwindow.cpp
--- branches/KDE/3.5/kdegraphics/kolourpaint/kpmainwindow.cpp #724086:724087
@@ -987,10 +987,20 @@
void kpMainWindow::slotScrollViewAboutToScroll ()
{
#if DEBUG_KP_MAIN_WINDOW && 0
- kdDebug () << "kpMainWindow::slotScrollViewAboutToScroll()" << endl;
- kdDebug () << "\tfastUpdates=" << viewManager ()->fastUpdates ()
- << " queueUpdates=" << viewManager ()->queueUpdates ()
- << endl;
+ kdDebug () << "kpMainWindow::slotScrollViewAboutToScroll() tool="
+ << tool () << " viewManager=" << viewManager () << endl;
+ if (viewManager ())
+ {
+ kdDebug () << "\tfastUpdates=" << viewManager ()->fastUpdates ()
+ << " queueUpdates=" << viewManager ()->queueUpdates ()
+ << endl;
+ }
+ else
+ {
+ // We're getting a late signal from the scrollview (thanks to
+ // a timer inside the QScrollView). By now, setDocument() has
+ // already killed the document(), tool() and viewManager().
+ }
#endif
QTimer::singleShot (0, this, SLOT (slotScrollViewAfterScroll ()));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic