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

Modified Files:
        wxFolderView.cpp 
Log Message:
show the number of selected messages in the correct frame, not always the main one

Index: wxFolderView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderView.cpp,v
retrieving revision 1.639
retrieving revision 1.640
diff -b -u -2 -r1.639 -r1.640
--- wxFolderView.cpp    22 Jul 2003 22:01:40 -0000      1.639
+++ wxFolderView.cpp    23 Jul 2003 19:27:49 -0000      1.640
@@ -2704,10 +2704,20 @@
       if ( m_countSelected )
          msg.Printf(_("%lu messages selected"), (unsigned long)m_countSelected);
-      else
-         msg = "";
 
-      wxFrame *frame = mApplication->TopLevelFrame();
-      frame->SetStatusText(msg,
-                           mApplication->GetStatusField(MAppBase::SF_FOLDER));
+      // determine where should this message go
+      wxFrame *frame = GetFrame(this);
+      CHECK_RET( frame, _T("wxFolderListCtrl: no parent frame?") );
+
+      int field;
+      if ( frame == mApplication->TopLevelFrame() )
+      {
+         field = mApplication->GetStatusField(MAppBase::SF_FOLDER);
+      }
+      else // we're opened in another window
+      {
+         field = 0;
+      }
+
+      frame->SetStatusText(msg, field);
    }
 }



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to