Use Quit() method when quitting through the context menu

The Quit() method deletes the pid file correctly and ensures that the `sparkleshare` bash script works correctly.
This commit is contained in:
Philipp Gildein 2010-06-11 14:00:07 +02:00
parent 29dc643578
commit 32b52e0017

View file

@ -137,7 +137,7 @@ namespace SparkleShare {
Menu.Add (new SeparatorMenuItem ());
MenuItem QuitItem = new MenuItem (_("Quit"));
QuitItem.Activated += delegate { Environment.Exit (0); };
QuitItem.Activated += Quit;
Menu.Add (QuitItem);
Menu.ShowAll ();
Menu.Popup (null, null, SetPosition, 0, 0);