Copy the completion-models before iterating over them, and always make sure that the processed model has not been removed as a side-effect. This should fix a possible crash that could happen when one o t he called function caused the completion to abort completey, thus invalidating the iterator. BUG: 185661
Copy the completion-models before iterating over them, and always make sure that the processed model has not been removed as a side-effect.
This should fix a possible crash that could happen when one o t he called function caused the completion to abort completey, thus invalidating the iterator.
BUG: 185661

svn path=/trunk/KDE/kdelibs/kate/; revision=932614

hlamer/kate,cmacq2/kate,hlamer/kate,sandsmark/kate,hlamer/kate,cmacq2/kate,hlamer/kate,cmacq2/kate,hlamer/kate,sandsmark/kate,sandsmark/kate,hlamer/kate,sandsmark/kate,hlamer/kate,hlamer/kate,jfmcarreira/kate,DickJ/kate,DickJ/kate,DickJ/kate,jfmcarreira/kate,hlamer/kate,hlamer/kate,jfmcarreira/kate,DickJ/kate