Update of /cvsroot/audacity/audacity-src/src/widgets
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv29203
Modified Files:
LinkingHtmlWindow.cpp
Log Message:
fix for GetOpenCommand problem with Internet Explorer
Index: LinkingHtmlWindow.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/LinkingHtmlWindow.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- LinkingHtmlWindow.cpp 22 Mar 2007 04:51:26 -0000 1.2
+++ LinkingHtmlWindow.cpp 24 Mar 2007 02:44:29 -0000 1.3
@@ -23,9 +23,14 @@
::wxExecute(openCmd);
#else
wxFileType* pFileType =
wxTheMimeTypesManager->GetFileTypeFromExtension(wxT(".htm"));
- if (pFileType == NULL) return;
+ if (pFileType == NULL)
+ return;
wxString openCmd = pFileType->GetOpenCommand(link.GetHref());
+ if (openCmd.Contains(wxT("iexplore.exe")))
+ // GetOpenCommand is not quite right for Internet Explorer.
+ openCmd.Replace(wxT("WWW_OpenURL#\"file://"), wxT("WWW_OpenURL#\""));
::wxExecute(openCmd);
+ delete pFileType;
#endif
};
-------------------------------------------------------------------------
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
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs