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

List:       kde-commits
Subject:    kdelibs/kparts
From:       CVS by hausmann <kde-cvs () kde ! org>
Date:       2001-05-31 20:46:29
[Download RAW message or body]



kdelibs/kparts browserextension.cpp,1.31,1.32
Author: hausmann
Thu May 31 20:46:16 UTC 2001


Modified Files:
         browserextension.cpp
Log Message:
- oooops, don't crash if there are no children. thanks jowenn for reporting

@@ -472,6 +472,8 @@ BrowserExtension *BrowserExtension::childObject
     // we try to do it on our own, in hope that we are faster than
     // queryList, which looks kind of big :-)
     const QObjectList *children = obj->children();
+    if ( !children )
+        return 0L;
     QObjectListIt it( *children );
     for (; it.current(); ++it )
         if ( it.current()->inherits( "KParts::BrowserExtension" ) )

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

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