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

List:       kde-commits
Subject:    branches/extragear/kde3/network/konversation/src
From:       Eike Hein <hein () kde ! org>
Date:       2008-03-28 18:54:28
Message-ID: 1206730468.213243.12129.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 791214 by hein:

Don't crash when the viewtree receives non-arrow keypress events 
during shutdown and the selected view has already been destroyed.


 M  +2 -2      viewtree.cpp  


--- branches/extragear/kde3/network/konversation/src/viewtree.cpp #791213:791214
@@ -657,12 +657,12 @@
     else
     {
         ViewTreeItem* item = static_cast<ViewTreeItem*>(selectedItem());
-        if (item && item->getView()->isInsertSupported())
+        if (item && item->getView() && item->getView()->isInsertSupported())
         {
             KApplication::sendEvent(item->getView()->getTextView(), e);
             item->getView()->adjustFocus();
         }
-        else if (item && item->getView()->getType() == ChatWindow::Konsole)
+        else if (item && item->getView() && item->getView()->getType() == ChatWindow::Konsole)
         {
             KonsolePanel* panel = static_cast<KonsolePanel*>(item->getView());
             KApplication::sendEvent(panel->getWidget(), e);
[prev in list] [next in list] [prev in thread] [next in thread] 

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