SVN commit 700851  by moenicke:
* fix for kolab issue 1882 (Crash after reply to a revoked mail):
  The storage needs to be open before remove is called, otherwise
  it will not unregister the corresponding serial numbers from
  the message dict, since its message list is empty, and the .ids
  file contents are not loaded. That can lead to lookups in the
  dict returning stale pointers to the folder later.


svn path=/trunk/KDE/kdepim/; revision=700858
wilder-work
Thomas Moenicke 19 years ago
parent a32f17fdb2
commit 250b9b067c
  1. 6
      kmfolder.cpp

@ -520,6 +520,12 @@ void KMFolder::markUnreadAsRead()
void KMFolder::remove()
{
/* The storage needs to be open before remove is called, otherwise
it will not unregister the corresponding serial numbers from
the message dict, since its message list is empty, and the .ids
file contents are not loaded. That can lead to lookups in the
dict returning stale pointers to the folder later. */
mStorage->open();
mStorage->remove();
}

Loading…
Cancel
Save