[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_3_BRANCH: kdepim/kmail
From:       Till Adam <adam () kde ! org>
Date:       2004-11-02 14:22:29
Message-ID: 20041102142229.EC69316B81 () office ! kde ! org
[Download RAW message or body]

CVS commit by tilladam: 

Reselect something when the current message is removed by something other
than gui actions, such a filter or the groupware callback handler. Fixed
proko2 issue 505.


  M +8 -2      kmheaders.cpp   1.658.2.7


--- kdepim/kmail/kmheaders.cpp  #1.658.2.6:1.658.2.7
@@ -1356,5 +1356,13 @@ void KMHeaders::msgRemoved(int id, QStri
       setSelectionAnchor( currentItem() );
     } else {
+      // We've removed the current item, which means it was removed from
+      // something other than a user move or copy, which would have selected
+      // the next logical mail. This can happen when the mail is deleted by
+      // a filter, or some other behind the scenes action. Select something
+      // sensible, then, and make sure the reader window is cleared.
       emit maybeDeleting();
+      int contentX, contentY;
+      KMHeaderItem *nextItem = prepareMove( &contentX, &contentY );
+      finalizeMove( nextItem, contentX, contentY );
     }
   }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic