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

List:       konq-bugs
Subject:    [Bug 200181] Konqueror crashed when view two tabs (notify, ..,
From:       Dario Andres <andresbajotierra () gmail ! com>
Date:       2009-09-07 14:43:33
Message-ID: 20090907144333.0A05F1E37C () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=200181





--- Comment #9 from Dario Andres <andresbajotierra gmail com>  2009-09-07 16:43:31 ---
The patch proposed at http://pastebin.com/d4f11121a seems to be fix the
testcase I added (only tested once, valgrind is slow. I'm going to recheck
later). It also seems to fix the DolphinPart crash

--- apps/konqueror/src/konqmainwindow.cpp    (revision 1019778)
+++ apps/konqueror/src/konqmainwindow.cpp    (working copy)
 -5635,8 +5635,11 @@ bool KonqMainWindow::event( QEvent* e )
         // Forward the event to all views
         MapViews::ConstIterator it = m_mapViews.constBegin();
         MapViews::ConstIterator end = m_mapViews.constEnd();
-        for (; it != end; ++it )
-            QApplication::sendEvent( (*it)->part(), e );
+        for (; it != end; ++it ) {
+            if ((*it)->part() != 0L) {
+                QApplication::sendEvent( (*it)->part(), e );
+            }
+        }
         return true;
     }
     if ( KParts::OpenUrlEvent::test( e ) )

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

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