[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kabc
From: Bram Schoenmakers <bramschoenmakers () kde ! nl>
Date: 2004-10-04 21:50:49
Message-ID: 20041004215049.8E1C616B7A () office ! kde ! org
[Download RAW message or body]
CVS commit by bram:
Put the standard address resource on top of the list. The KRES::SelectDialog will
preselect this resource then.
There should be a cleaner way though, by doing this in the SelectDialog straight
away. But there, I can't access the ResourceManager.
M +6 -2 addressbook.cpp 1.76
--- kdelibs/kabc/addressbook.cpp #1.75:1.76
@@ -745,6 +745,10 @@ QPtrList<Resource> AddressBook::resource
KRES::Manager<Resource>::ActiveIterator it;
- for ( it = d->mManager->activeBegin(); it != d->mManager->activeEnd(); ++it )
+ for ( it = d->mManager->activeBegin(); it != d->mManager->activeEnd(); ++it ) {
+ if ( d->mManager->standardResource() == (*it) )
+ list.prepend( *it );
+ else
list.append( *it );
+ }
return list;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic