make slotPrev/Next work: - fix crash when calling slotPrev with no selected item - return after selecting an item - much cleaner code
make slotPrev/Next work:
- fix crash when calling slotPrev with no selected item
- return after selecting an item
- much cleaner code

svn path=/trunk/KDE/kdesdk/kate/; revision=873296

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