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

Modified Files:
        wxFolderTree.cpp 
Log Message:
don't open the folder just to update its status; fixes infinite recursion when trying 
to open a corrupt MBX folder (bug 674)

Index: wxFolderTree.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderTree.cpp,v
retrieving revision 1.195
retrieving revision 1.196
diff -b -u -2 -r1.195 -r1.196
--- wxFolderTree.cpp    27 Aug 2002 18:57:19 -0000      1.195
+++ wxFolderTree.cpp    2 Sep 2002 10:40:30 -0000       1.196
@@ -2591,9 +2591,4 @@
          DoFolderProperties();
       }
-      else
-      {
-         // without Alt it's the same as double click
-         (void)OnDoubleClick();
-      }
       break;
 
@@ -2939,8 +2934,7 @@
                  "Folder tree: no cached status, calling CountAllMessages()");
 
-      // we don't have the status right now, count the messages now: this will
-      // result in another status update sent to us later but then the status
-      // cache should already be cached
-      MailFolder_obj mf = MailFolder::OpenFolder(folder, MailFolder::ReadOnly);
+      // we don't have the status right now, count the messages (the folder
+      // should be already opened, we don't want to open it just for this)
+      MailFolder_obj mf = MailFolder::GetOpenedFolderFor(folder);
       if ( !mf )
       {



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to