[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/kmail
From: Andreas Gungl <a.gungl () gmx ! de>
Date: 2003-12-30 23:03:30
Message-ID: 20031230230330.3BA8493FC () office ! kde ! org
[Download RAW message or body]
CVS commit by gungl:
replace calls to deprecated methods of KABC::Addressbook
(reviewed by Till)
M +8 -5 kmaddrbook.cpp 1.81
--- kdepim/kmail/kmaddrbook.cpp #1.80:1.81
@@ -172,7 +172,8 @@ void KMAddrBookExternal::addEmail( const
a.insertEmail( email, true );
+ KABC::Ticket *t = ab->requestSaveTicket();
+ if ( t )
ab->insertAddressee(a);
-
- if ( !KABC::StdAddressBook::save() ) {
+ if ( !t || !ab->save( t ) ) {
KMessageBox::error( parent, i18n("Can't save to addressbook.") );
} else {
@@ -236,6 +237,8 @@ bool KMAddrBookExternal::addVCard( const
if ( addressees.isEmpty() ) {
+ KABC::Ticket *t = ab->requestSaveTicket();
+ if ( t )
ab->insertAddressee( addressee );
- if ( !KABC::StdAddressBook::save() ) {
+ if ( !t || !ab->save( t ) ) {
KMessageBox::error( parent, i18n("Can't save to addressbook.") );
inserted = false;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic