From 15c44e8925872de8cd8412f415a19462d5f9dabc Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 17 Dec 2011 14:09:29 +0100 Subject: [PATCH] Fix hang on quit. Closes #429 --- SparkleShare/Mac/SparkleController.cs | 7 ------- SparkleShare/Mac/SparkleUI.cs | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/SparkleShare/Mac/SparkleController.cs b/SparkleShare/Mac/SparkleController.cs index 4bc7ce0b..3b4f0e4b 100755 --- a/SparkleShare/Mac/SparkleController.cs +++ b/SparkleShare/Mac/SparkleController.cs @@ -209,12 +209,5 @@ namespace SparkleShare { url = url.Replace ("%20", " "); NSWorkspace.SharedWorkspace.OpenFile (url); } - - - new public void Quit () - { - this.watcher.Dispose (); - base.Quit (); - } } } diff --git a/SparkleShare/Mac/SparkleUI.cs b/SparkleShare/Mac/SparkleUI.cs index 747ebd1f..1e512d4d 100755 --- a/SparkleShare/Mac/SparkleUI.cs +++ b/SparkleShare/Mac/SparkleUI.cs @@ -108,6 +108,7 @@ namespace SparkleShare { NSApplication.SharedApplication.DockTile.BadgeLabel = null; } + public override void WillTerminate (NSNotification notification) { Program.Controller.Quit ();