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

Modified Files:
        wxFolderTree.cpp 
Log Message:
redesigned the MailFolder and related classes to virtualize access to the folder
functions via folder drivers -- this should allow to plug in a virtual folder
implementation easily now

WARNING: many untested changes, don't use for now for anything but testing!


Index: wxFolderTree.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderTree.cpp,v
retrieving revision 1.193
retrieving revision 1.194
diff -b -u -2 -r1.193 -r1.194
--- wxFolderTree.cpp    3 Jun 2002 11:09:09 -0000       1.193
+++ wxFolderTree.cpp    14 Jul 2002 23:41:22 -0000      1.194
@@ -2944,15 +2944,13 @@
       // result in another status update sent to us later but then the status
       // cache should already be cached
-      MailFolder *mf = MailFolder::OpenFolder(folder, MailFolder::ReadOnly);
-      if ( mf )
+      MailFolder_obj mf = MailFolder::OpenFolder(folder, MailFolder::ReadOnly);
+      if ( !mf )
       {
-         MailFolderStatus status;
-         (void)mf->CountAllMessages(&status);
-
-         mf->DecRef();
+         wxLogDebug("Failed to update status for '%s'", folderName.c_str());
       }
       else
       {
-         wxLogDebug("Failed to update status for '%s'", folderName.c_str());
+         MailFolderStatus status;
+         (void)mf->CountAllMessages(&status);
       }
 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to