Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv15508/src/gui

Modified Files:
        ClickURL.cpp 
Log Message:
allow '%s' in MP_BROWSER settings

Index: ClickURL.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/ClickURL.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -b -u -2 -r1.24 -r1.25
--- ClickURL.cpp        26 Jun 2006 23:24:41 -0000      1.24
+++ ClickURL.cpp        23 Aug 2006 15:31:23 -0000      1.25
@@ -49,4 +49,5 @@
 
 #include <wx/clipbrd.h>
+#include <wx/mimetype.h>
 
 #ifdef OS_UNIX
@@ -261,7 +262,7 @@
             else
             {
-               wxTheClipboard->UsePrimarySelection();
-               wxTheClipboard->SetData(new
-                     wxTextDataObject(m_clickableURL->GetUrl()));
+               wxURLDataObject *dobj = new wxURLDataObject;
+               dobj->SetURL(m_clickableURL->GetUrl());
+               wxTheClipboard->SetData(dobj);
             }
          }
@@ -501,6 +502,5 @@
       if(! bOk)
       {
-         command = browser;
-         command << _T(' ') << m_url;
+         String command = wxFileType::ExpandCommand(browser, m_url);
 
          wxString errmsg;


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to