SF.net SVN: mahogany:[7515] trunk/M/src/wx/generic/persctrl.cpp

[email protected] Tue, 05 Aug 2008 19:07:00 +0000
Newsgroups gmane.mail.mahogany.cvs
Message-ID <[email protected]>
Revision: 7515
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7515&view=rev
Author:   vadz
Date:     2008-08-05 19:06:54 +0000 (Tue, 05 Aug 2008)

Log Message:
-----------
flush wxLog before showing the message box

Modified Paths:
--------------
    trunk/M/src/wx/generic/persctrl.cpp

Modified: trunk/M/src/wx/generic/persctrl.cpp
===================================================================
--- trunk/M/src/wx/generic/persctrl.cpp	2008-08-05 18:39:51 UTC (rev 7514)
+++ trunk/M/src/wx/generic/persctrl.cpp	2008-08-05 19:06:54 UTC (rev 7515)
@@ -1839,6 +1839,11 @@
                ::ReleaseCapture();
 #endif // __WINDOWS__
 
+                // show any previous error messages, they could contain useful
+                // information which could help the user to answer our question
+                // or otherwise understand this message
+                wxLog::FlushActive();
+
                 // do show the msg box
                 wxPMessageDialog dlg(parent, message, caption, style, *params);
                 rc = dlg.ShowModal();


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/