[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.2/kdelibs/khtml
From: Harri Porten <porten () kde ! org>
Date: 2009-01-16 1:12:33
Message-ID: 1232068353.012955.5556.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 911738 by porten:
Got crashes when a FocusOut event was issued to a view with an already deleted part.
M +6 -4 khtmlview.cpp
--- branches/KDE/4.2/kdelibs/khtml/khtmlview.cpp #911737:911738
@@ -3861,18 +3861,20 @@
void KHTMLView::focusOutEvent( QFocusEvent *e )
{
- m_part->stopAutoScroll();
+ if (m_part) {
+ m_part->stopAutoScroll();
+ m_part->setSelectionVisible(false);
+ }
#ifndef KHTML_NO_TYPE_AHEAD_FIND
if(d->typeAheadActivated)
{
findTimeout();
}
- m_part->enableFindAheadActions( false );
+ if (m_part)
+ m_part->enableFindAheadActions( false );
#endif // KHTML_NO_TYPE_AHEAD_FIND
- m_part->setSelectionVisible(false);
-
if ( d->cursorIconWidget )
d->cursorIconWidget->hide();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic