cleanup + take last document, which is really the one we created
cleanup + take last document, which is really the one we created

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

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