Fix hang on quit. Closes #429

This commit is contained in:
Hylke Bons 2011-12-17 14:09:29 +01:00
parent 85e69ed678
commit 15c44e8925
2 changed files with 1 additions and 7 deletions

View file

@ -209,12 +209,5 @@ namespace SparkleShare {
url = url.Replace ("%20", " ");
NSWorkspace.SharedWorkspace.OpenFile (url);
}
new public void Quit ()
{
this.watcher.Dispose ();
base.Quit ();
}
}
}

View file

@ -108,6 +108,7 @@ namespace SparkleShare {
NSApplication.SharedApplication.DockTile.BadgeLabel = null;
}
public override void WillTerminate (NSNotification notification)
{
Program.Controller.Quit ();