[Monodevelop-patches-list] r809 - trunk/MonoDevelop/src/Main/Base/Services/DisplayBinding
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Feb 7 16:02:15 EST 2004
Author: tberman
Date: 2004-02-07 16:02:14 -0500 (Sat, 07 Feb 2004)
New Revision: 809
Modified:
trunk/MonoDevelop/src/Main/Base/Services/DisplayBinding/DisplayBindingService.cs
Log:
oops
Modified: trunk/MonoDevelop/src/Main/Base/Services/DisplayBinding/DisplayBindingService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/DisplayBinding/DisplayBindingService.cs 2004-02-07 20:58:52 UTC (rev 808)
+++ trunk/MonoDevelop/src/Main/Base/Services/DisplayBinding/DisplayBindingService.cs 2004-02-07 21:02:14 UTC (rev 809)
@@ -45,9 +45,11 @@
public DisplayBindingCodon GetCodonPerFileName(string filename)
{
string mimetype = MonoDevelop.GuiUtils.Vfs.GetMimeType (filename);
- foreach (DisplayBindingCodon binding in bindings) {
- if (binding.DisplayBinding != null && binding.DisplayBinding.CanCreateContentForMimeType (mimetype)) {
- return binding;
+ if (!filename.StartsWith ("http")) {
+ foreach (DisplayBindingCodon binding in bindings) {
+ if (binding.DisplayBinding != null && binding.DisplayBinding.CanCreateContentForMimeType (mimetype)) {
+ return binding;
+ }
}
}
Console.WriteLine ("Didnt match on mimetype, trying filename");
More information about the Monodevelop-patches-list
mailing list