Update of /cvsroot/mahogany/M/src/mail
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21480/src/mail

Modified Files:
        MailFolderCmn.cpp 
Log Message:
fixed problem with trying to update the GUI state of an already expunged message (this 
bug was probably harmless, other more serious one(s?) must still be lurking 
somewhere...)

Index: MailFolderCmn.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MailFolderCmn.cpp,v
retrieving revision 1.129
retrieving revision 1.130
diff -b -u -2 -r1.129 -r1.130
--- MailFolderCmn.cpp   23 Oct 2003 12:12:59 -0000      1.129
+++ MailFolderCmn.cpp   7 Apr 2004 22:57:50 -0000       1.130
@@ -2231,4 +2231,18 @@
       mfStatusCache->UpdateStatus(GetName(), status);
    }
+   else // no cached status
+   {
+      // we still have to weed out the expunged messages, just as we do above
+      size_t count = m_statusChangeData->msgnos.GetCount();
+      for ( size_t n = 0; n < count; )
+      {
+         if ( m_statusChangeData->msgnos[n] == MSGNO_ILLEGAL )
+         {
+            m_statusChangeData->Remove(n);
+
+            count--;
+         }
+      }
+   }
 
    // next notify everyone else about the status change



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to