Fix the fix: Returning the serial number. I hate int returns for error stuff :-(

svn path=/branches/proko2/kdepim/; revision=324880
wilder-work
Bo Thorsen 22 years ago
parent a8e26a6863
commit 196c101692
  1. 5
      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";

Loading…
Cancel
Save