]> Git trees. - libqmvoc.git/commitdiff
remove translations from their leitner box when deleting them (fix one leitner crash)
authorFrederik Gladhorn <gladhorn@kde.org>
Thu, 3 Jul 2008 19:21:03 +0000 (19:21 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Thu, 3 Jul 2008 19:21:03 +0000 (19:21 +0000)
svn path=/branches/work/soc-parley/libkdeedu/; revision=827781

keduvocdocument/keduvoctranslation.cpp

index 805491870b886f08c54d32443df9532f72cae151..86959bdc2d4a5acf1c6181d85bfd7f8db6cc4c11 100644 (file)
@@ -130,6 +130,7 @@ KEduVocTranslation::KEduVocTranslation( const KEduVocTranslation &other )
 KEduVocTranslation::~KEduVocTranslation()
 {
     setWordType(0);
+    setLeitnerBox(0);
     foreach (KEduVocTranslation *synonym, d->m_synonyms) {
         synonym->removeSynonym(this);
     }