Update of /cvsroot/audacity/audacity-src/src/widgets
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv15023

Modified Files:
        ErrorDialog.cpp 
Log Message:
Prevent opening double browsers on Windows

Index: ErrorDialog.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/ErrorDialog.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ErrorDialog.cpp     24 Jul 2007 10:45:40 -0000      1.1
+++ ErrorDialog.cpp     28 Jul 2007 08:13:55 -0000      1.2
@@ -23,6 +23,7 @@
 #include <wx/stattext.h>
 #include <wx/utils.h>
 
+#include "LinkingHtmlWindow.h"
 #include "../ShuttleGui.h"
 
 class ErrorDialog : public wxDialog
@@ -116,7 +117,11 @@
 
 void ErrorDialog::OnHelp(wxCommandEvent &event)
 {
-       wxLaunchDefaultBrowser(dhelpURL);       
+#if defined(__WXMSW__) || defined(__WXMAC__)
+   OpenInDefaultBrowser(dhelpURL);
+#else
+   wxLaunchDefaultBrowser(dhelpURL);
+#endif
        EndModal(true);
 }
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to