Revision: 7293
          http://svn.sourceforge.net/mahogany/?rev=7293&view=rev
Author:   vadz
Date:     2007-07-12 06:30:44 -0700 (Thu, 12 Jul 2007)

Log Message:
-----------
don't use OnIdle(), it doesn't exist any more in latest wx; and it shouldn't be 
necessary

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

Modified: trunk/M/src/gui/wxMDialogs.cpp
===================================================================
--- trunk/M/src/gui/wxMDialogs.cpp      2007-07-03 10:56:27 UTC (rev 7292)
+++ trunk/M/src/gui/wxMDialogs.cpp      2007-07-12 13:30:44 UTC (rev 7293)
@@ -992,21 +992,11 @@
                            : wxFD_SAVE | wxFD_OVERWRITE_PROMPT,
                         this
                       );
-         if ( !!m_FileName )
+         if ( !m_FileName.empty() )
          {
             // 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);
-            }
          }
          break;
 


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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to