From: Frederik Gladhorn Date: Thu, 3 Jul 2008 19:21:03 +0000 (+0000) Subject: remove translations from their leitner box when deleting them (fix one leitner crash) X-Git-Tag: v4.1.80~41^2 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=2f89d81524e35346a5ff5676ff6d2431c951c8fd;p=libqmvoc.git remove translations from their leitner box when deleting them (fix one leitner crash) svn path=/branches/work/soc-parley/libkdeedu/; revision=827781 --- diff --git a/keduvocdocument/keduvoctranslation.cpp b/keduvocdocument/keduvoctranslation.cpp index 8054918..86959bd 100644 --- a/keduvocdocument/keduvoctranslation.cpp +++ b/keduvocdocument/keduvoctranslation.cpp @@ -130,6 +130,7 @@ KEduVocTranslation::KEduVocTranslation( const KEduVocTranslation &other ) KEduVocTranslation::~KEduVocTranslation() { setWordType(0); + setLeitnerBox(0); foreach (KEduVocTranslation *synonym, d->m_synonyms) { synonym->removeSynonym(this); }