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

List:       kde-commits
Subject:    kdepim/certmanager/lib/ui
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2004-04-26 14:53:10
Message-ID: 20040426145310.EF6529AFB () office ! kde ! org
[Download RAW message or body]

CVS commit by mutz: 

Fix slotRefreshKey() to scan not only top-level, but also nested items for the item \
to replace the key in.


  M +7 -4      keylistview.cpp   1.22


--- kdepim/certmanager/lib/ui/keylistview.cpp  #1.21:1.22
@@ -299,9 +299,12 @@ void Kleo::KeyListView::slotRefreshKey( 
   if ( !fpr )
     return;
-  for ( KeyListViewItem * item = firstChild() ; item ; item = item->nextSibling() )
+  for ( QListViewItemIterator it( this ) ; it.current() ; ++it )
+    if ( ( it.current()->rtti() & KeyListViewItem::RTTI_MASK ) == \
KeyListViewItem::RTTI ) { +      KeyListViewItem * item = \
static_cast<KeyListViewItem*>( it.current() );  if ( qstrcmp( fpr, \
item->key().subkey(0).fingerprint() ) == 0 ) {  item->setKey ( key );
       return;
     }
+    }
   // none found -> add it
   slotAddKey( key );


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

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