[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kate_super_branch: kdelibs/kate/part
From:       Hamish Rodda <rodda () kde ! org>
Date:       2004-06-05 9:40:42
Message-ID: 20040605094042.8ABB8126F6 () office ! kde ! org
[Download RAW message or body]

CVS commit by rodda: 

Prevent crash when internal view tries to redraw once view has been destroyed.
No idea why this started happening :(


  M +1 -0      kateview.cpp   1.348.2.4
  M +4 -0      kateviewinternal.cpp   1.295.2.4


--- kdelibs/kate/part/kateview.cpp  #1.348.2.3:1.348.2.4
@@ -157,4 +157,5 @@ KateView::~KateView()
 
   delete m_renderer;
+  m_renderer = 0L;
 
   delete m_config;

--- kdelibs/kate/part/kateviewinternal.cpp  #1.295.2.3:1.295.2.4
@@ -2926,4 +2926,8 @@ void KateViewInternal::focusInEvent (QFo
 void KateViewInternal::focusOutEvent (QFocusEvent *)
 {
+  // Such as when the parent view has completed its destructor
+  if (!m_view->renderer())
+    return;
+
   m_cursorTimer.stop();
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic