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

List:       kde-commits
Subject:    KDE/kdepim/akonadi/akonadiconsole
From:       Stephen Kelly <steveire () gmail ! com>
Date:       2009-08-17 9:21:47
Message-ID: 1250500907.673131.8182.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1012253 by skelly:

Add crash guard for invalid section header.

Haven't found cause of latest crash yet though.

 M  +3 -0      akonadibrowsermodel.cpp  


--- trunk/KDE/kdepim/akonadi/akonadiconsole/akonadibrowsermodel.cpp #1012252:1012253
@@ -256,6 +256,9 @@
 
 QVariant AkonadiBrowserModel::getHeaderData( int section, Qt::Orientation \
orientation, int role, int headerSet ) const  {
+  if (section < 0)
+    return QVariant();
+
   if (orientation == Qt::Vertical)
      return EntityTreeModel::getHeaderData(section, orientation, role, headerSet);
 


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

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