From 196c10169230c9fdfce1cab3bc93dc4684169ffe Mon Sep 17 00:00:00 2001 From: Bo Thorsen Date: Wed, 30 Jun 2004 12:13:17 +0000 Subject: [PATCH] Fix the fix: Returning the serial number. I hate int returns for error stuff :-( svn path=/branches/proko2/kdepim/; revision=324880 --- kmailicalifaceimpl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kmailicalifaceimpl.cpp b/kmailicalifaceimpl.cpp index 752f44ded..269de37f7 100644 --- a/kmailicalifaceimpl.cpp +++ b/kmailicalifaceimpl.cpp @@ -312,9 +312,10 @@ Q_UINT32 KMailICalIfaceImpl::addIncidence( KMFolder& folder, if( bAttachOK ){ // Mark the message as read and store it in the folder msg->touch(); - if ( folder.addMsg( msg ) ) + if ( folder.addMsg( msg ) == 0 ) + // Message stored sernum = msg->getMsgSerNum(); - kdDebug(5006) << "addIncidence: Message done and saved. Sernum: " + kdDebug(5006) << "addIncidence(): Message done and saved. Sernum: " << sernum << endl; } else kdError(5006) << "addIncidence: Message *NOT* saved!\n";