-rw-r--r-- | kabc/addressbook.cpp | 3 | ||||
-rw-r--r-- | kabc/addressbook.h | 2 | ||||
-rw-r--r-- | kabc/addressee.cpp | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp index 6e8d027..3ec0795 100644 --- a/kabc/addressbook.cpp +++ b/kabc/addressbook.cpp @@ -447,3 +447,3 @@ Ticket *AddressBook::requestSaveTicket( Resource *resource ) -void AddressBook::insertAddressee( const Addressee &a ) +void AddressBook::insertAddressee( const Addressee &a, bool setRev ) { @@ -462,2 +462,3 @@ void AddressBook::insertAddressee( const Addressee &a ) if ( changed ) { + if ( setRev ) (*it).setRevision( QDateTime::currentDateTime() ); diff --git a/kabc/addressbook.h b/kabc/addressbook.h index 650a638..253de68 100644 --- a/kabc/addressbook.h +++ b/kabc/addressbook.h @@ -175,3 +175,3 @@ class AddressBook : public QObject */ - void insertAddressee( const Addressee & ); + void insertAddressee( const Addressee &, bool setRev = true ); diff --git a/kabc/addressee.cpp b/kabc/addressee.cpp index fb32f6e..7f04d8f 100644 --- a/kabc/addressee.cpp +++ b/kabc/addressee.cpp @@ -95,2 +95,3 @@ Addressee::Addressee() mData->mExternalId = ":"; + mData->revision = QDateTime ( QDate( 2004,1,1)); mTempSyncStat = SYNC_TEMPSTATE_INITIAL; |