findMessageBySerNum complains when asking with a nonexisting serialnumber. So don't even try, when we know it's wrong

svn path=/branches/proko2/kdepim/; revision=324868
wilder-work
Bo Thorsen 22 years ago
parent e9b39b79ee
commit d9387cf3d4
  1. 4
      kmailicalifaceimpl.cpp

@ -633,8 +633,8 @@ Q_UINT32 KMailICalIfaceImpl::update( const QString& resource,
KMFolder* f = findResourceFolder( resource );
kdDebug(5006) << "Updating in folder " << f << endl;
if( f && storageFormat( f ) == StorageXML ){
KMMessage* msg = findMessageBySerNum( sernum, f );
if( msg ) {
KMMessage* msg;
if( sernum != 0 && ( msg = findMessageBySerNum( sernum, f ) ) ) {
// Message found - update it:
// Delete some attachments according to list

Loading…
Cancel
Save