Ouch, don't crash when updating an object (e.g. contact) while the kmail folder

holding it isn't open.
With thanks to valgrind as always.

svn path=/branches/proko2/kdepim/; revision=338706
wilder-work
David Faure 22 years ago
parent 14e8fc07e9
commit a4b3dd8a83
  1. 4
      kmailicalifaceimpl.cpp

@ -799,6 +799,8 @@ Q_UINT32 KMailICalIfaceImpl::update( const QString& resource,
kdError(5006) << "update(" << resource << ") : Folder has wrong storage format " << storageFormat( f ) << endl;
return rc;
}
f->open();
bool quiet = mResourceQuiet;
mResourceQuiet = true;
@ -859,6 +861,8 @@ Q_UINT32 KMailICalIfaceImpl::update( const QString& resource,
attachmentMimetypes );
}
f->close();
mResourceQuiet = quiet;
return rc;
}

Loading…
Cancel
Save