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

List:       kde-commits
Subject:    koffice/kplato/libs/ui
From:       Dag Andersen <danders () get2net ! dk>
Date:       2010-02-26 13:39:57
Message-ID: 1267191597.279862.24170.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1096313 by danders:

Don't crash even if no view is found.


 M  +1 -1      kptsplitterview.cpp  


--- trunk/koffice/kplato/libs/ui/kptsplitterview.cpp #1096312:1096313
@@ -296,7 +296,7 @@
     }
 #ifndef KOXML_USE_QDOM
     foreach ( const QString &s, e.attributeNames() ) {
-        ViewBase *v = findChildren<ViewBase*>( s ).first();
+        ViewBase *v = findChildren<ViewBase*>( s ).value( 0 );
         if ( v == 0 ) {
             continue;
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

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