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

List:       kde-commits
Subject:    KDE/kdepim/kleopatra/models
From:       Frank Osterfeld <frank.osterfeld () kdemail ! net>
Date:       2008-04-07 17:09:25
Message-ID: 1207588165.820476.19477.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 794483 by osterfeld:

Let only column 0 items have children. Fixes ModelTest assertion.

 M  +6 -3      keylistmodel.cpp  


--- trunk/KDE/kdepim/kleopatra/models/keylistmodel.cpp #794482:794483
@@ -438,13 +438,16 @@
 
     // toplevel item:
     if ( !pidx.isValid() )
-	return mTopLevels.size();
-
+        return mTopLevels.size();
+    
+    if ( pidx.column() != 0 )
+        return 0;
+    
     // non-toplevel item - find the number of subjects for this issuer:
     const Key issuer = this->key( pidx );
     const char * const fpr = issuer.primaryFingerprint();
     if ( !fpr || !*fpr )
-	return 0;
+        return 0;
     const Map::const_iterator it = mKeysByExistingParent.find( fpr );
     if ( it == mKeysByExistingParent.end() )
         return 0;
[prev in list] [next in list] [prev in thread] [next in thread] 

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