From a348ff2d353a8e9b31f81c9199376101ba69a281 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 19 Oct 2012 21:45:10 +0100 Subject: [PATCH] eventlog: fix opening of files on mac --- SparkleShare/SparkleEventLogController.cs | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/SparkleShare/SparkleEventLogController.cs b/SparkleShare/SparkleEventLogController.cs index d81001f7..611cd84b 100755 --- a/SparkleShare/SparkleEventLogController.cs +++ b/SparkleShare/SparkleEventLogController.cs @@ -224,19 +224,11 @@ namespace SparkleShare { public void LinkClicked (string url) { - - url = url.Replace ("%20", " "); - - if (url.StartsWith ("file://") || - url.Substring (1, 1).Equals (":")) { - - Program.Controller.OpenFile (url); - } else if (url.StartsWith ("http")) { + if (url.StartsWith ("http")) { Program.Controller.OpenWebsite (url); - } else if (url.StartsWith ("restore://") && this.restore_revision_info == null) { Regex regex = new Regex ("restore://(.+)/([a-f0-9]+)/(.+)/(.{3} [0-9]+ [0-9]+h[0-9]+)/(.+)", RegexOptions.Compiled); Match match = regex.Match (url); @@ -299,7 +291,10 @@ namespace SparkleShare { break; } - } + + } else { + Program.Controller.OpenFile (url); + } } @@ -408,7 +403,7 @@ namespace SparkleShare { html += ""; html = Program.Controller.EventLogHTML.Replace ("", html); - return html.Replace ("", "1000000000000000000"); + return html.Replace ("", "100000000"); }