From cbec38337ce211a6536199d1edd21deda7028451 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 18 Feb 2012 20:50:05 +0100 Subject: [PATCH] Remove invite after import --- SparkleShare/SparkleControllerBase.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SparkleShare/SparkleControllerBase.cs b/SparkleShare/SparkleControllerBase.cs index 38d3b3bd..6c8ca830 100755 --- a/SparkleShare/SparkleControllerBase.cs +++ b/SparkleShare/SparkleControllerBase.cs @@ -161,6 +161,8 @@ namespace SparkleShare { AlertNotificationRaised ("Oh noes!", "This invite seems screwed up..."); } + + File.Delete (args.FullPath); } } }; @@ -1055,6 +1057,8 @@ namespace SparkleShare { } catch (Exception e) { SparkleHelpers.DebugInfo ("Controller", "Error moving folder: " + e.Message); } + + this.fetcher = null; }; this.fetcher.Failed += delegate { @@ -1065,6 +1069,8 @@ namespace SparkleShare { if (Directory.Exists (tmp_path)) Directory.Delete (tmp_path, true); + + this.fetcher = null; }; this.fetcher.ProgressChanged += delegate (double percentage) {