From 01bf234613fd394ad09ab102f38f3986fbb31c41 Mon Sep 17 00:00:00 2001 From: Stefan Taferner Date: Fri, 21 Nov 1997 22:29:00 +0000 Subject: [PATCH] Compacting a folder now does not loose the current message. svn path=/trunk/kdenetwork/kmail/; revision=2980 --- kmmainwin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kmmainwin.cpp b/kmmainwin.cpp index 2bcf94077..55894a8f6 100644 --- a/kmmainwin.cpp +++ b/kmmainwin.cpp @@ -335,7 +335,9 @@ void KMMainWin::slotRemoveFolder() //----------------------------------------------------------------------------- void KMMainWin::slotCompactFolder() { + int idx = mHeaders->currentItem(); if (mFolder) mFolder->compact(); + mHeaders->setCurrentItem(idx); }