Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv32291/src/gui

Modified Files:
        wxFolderView.cpp 
Log Message:
fixed assert failures when Ctrl-Deleting the last message in the folder

Index: wxFolderView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderView.cpp,v
retrieving revision 1.613
retrieving revision 1.614
diff -b -u -2 -r1.613 -r1.614
--- wxFolderView.cpp    6 Nov 2002 11:01:54 -0000       1.613
+++ wxFolderView.cpp    7 Nov 2002 22:44:08 -0000       1.614
@@ -4117,10 +4117,10 @@
          if ( event.ControlDown() )
          {
-            if ( !m_msgCmdProc->ProcessCommand(WXMENU_MSG_DELETE_EXPUNGE,
-                                               selections) )
-            {
-               // don't move focus, messages were not expunged
+            m_msgCmdProc->ProcessCommand(WXMENU_MSG_DELETE_EXPUNGE, selections);
+
+            // don't move focus: either the messages were not expunged at all
+            // or they were but then we shouldn't move to the next message as
+            // the indices have been invalidated
                newFocus = -1;
-            }
          }
          else // normal delete



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to