Revision: 7400
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7400&view=rev
Author:   vadz
Date:     2008-01-08 09:04:13 -0800 (Tue, 08 Jan 2008)

Log Message:
-----------
fix for yet another reentrance in wxFolderListCtrl due to calls to wxYield 
elsewhere

Modified Paths:
--------------
    trunk/M/src/gui/wxFolderView.cpp

Modified: trunk/M/src/gui/wxFolderView.cpp
===================================================================
--- trunk/M/src/gui/wxFolderView.cpp    2007-12-30 17:46:46 UTC (rev 7399)
+++ trunk/M/src/gui/wxFolderView.cpp    2008-01-08 17:04:13 UTC (rev 7400)
@@ -1826,6 +1826,13 @@
 {
    if ( m_enableOnSelect )
    {
+      // at least under MSW we can somehow get here from inside our own
+      // UpdateListing() which calls wxYield internally and in this case
+      // m_mutexHeaders is already locked and there is nothing we can do --
+      // postpone update until idle time (not ideal but better than crashing)
+      if ( m_mutexHeaders.IsLocked() || !mApplication->AllowBgProcessing() )
+         return;
+
       // update it as it is normally only updated in OnIdle() which wasn't
       // called yet
       m_itemFocus = GetFocusedItem();


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to