Revision: 7174
http://svn.sourceforge.net/mahogany/?rev=7174&view=rev
Author: vadz
Date: 2006-12-17 17:25:47 -0800 (Sun, 17 Dec 2006)
Log Message:
-----------
temporarily ugly fix for the crash when selecting a file in folder chooser dialog
Modified Paths:
--------------
trunk/M/src/gui/wxMDialogs.cpp
Modified: trunk/M/src/gui/wxMDialogs.cpp
===================================================================
--- trunk/M/src/gui/wxMDialogs.cpp 2006-12-18 01:15:54 UTC (rev 7173)
+++ trunk/M/src/gui/wxMDialogs.cpp 2006-12-18 01:25:47 UTC (rev 7174)
@@ -991,6 +991,14 @@
// folder (file) chosen
if ( TransferDataFromWindow() )
{
+ // at least under Windows we must really delete the file dialog
+ // created above before destroying its parent (this dialog),
+ // otherwise wx currently crashes and we just call the idle
+ // handler which does the cleanup directly (this is a very bad
+ // idea in general but it's here only as a temporary workaround)
+ wxIdleEvent e;
+ wxTheApp->OnIdle(e);
+
EndModal(wxID_OK);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.