From 99348f3be45aadd2dfa834cd0d271123a3e038c2 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 5 Jul 2004 16:19:42 +0000 Subject: [PATCH] Just to look nice: update subject of the mail when updating the title of the note. OK, the notes resource is complete now. svn path=/branches/proko2/kdepim/; revision=326032 --- kmailicalifaceimpl.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/kmailicalifaceimpl.cpp b/kmailicalifaceimpl.cpp index b854e6d9a..5ec0742c6 100644 --- a/kmailicalifaceimpl.cpp +++ b/kmailicalifaceimpl.cpp @@ -721,6 +721,16 @@ Q_UINT32 KMailICalIfaceImpl::update( const QString& resource, break; } } + + // Just for cosmetics: update subject + if ( msg->subject() != subject ) { + KMMessage* newMsg = new KMMessage( *msg ); + newMsg->setSubject( subject ); + deleteMsg( msg ); + f->addMsg( newMsg ); + } + + }else{ // Message not found - store it newly rc = addIncidenceKolab( *f, subject, attachments, mimetypes );