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

Modified Files:
        wxFolderView.cpp 
Log Message:
fixed asserts when invoking message operations when there is no selection nor 
focus in folder view (only really happens when the folder is empty)

Index: wxFolderView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderView.cpp,v
retrieving revision 1.670
retrieving revision 1.671
diff -b -u -2 -r1.670 -r1.671
--- wxFolderView.cpp    15 May 2005 20:03:51 -0000      1.670
+++ wxFolderView.cpp    30 Jun 2005 14:21:12 -0000      1.671
@@ -2906,6 +2906,10 @@
    {
       case 0:
-         // if no selection, use the focused item
-         uids.Add(GetFocusedUId());
+         // if no selection, use the focused item (if any)
+         {
+            const UIdType uidFocus = GetFocusedUId();
+            if ( uidFocus != UID_ILLEGAL )
+               uids.Add(uidFocus);
+         }
          break;
 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to