From 26c4600e21774e2aed7aefb453930d96a7bec616 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 23 Jun 2011 01:04:44 +0100 Subject: [PATCH] event log: revert to All Folders when deleting a folder and said folder is displayed in the event log --- SparkleShare/Mac/SparkleEventLog.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SparkleShare/Mac/SparkleEventLog.cs b/SparkleShare/Mac/SparkleEventLog.cs index f439e14d..23f74c5d 100644 --- a/SparkleShare/Mac/SparkleEventLog.cs +++ b/SparkleShare/Mac/SparkleEventLog.cs @@ -108,7 +108,12 @@ namespace SparkleShare { this.popup_button.AddItem ("All Folders"); this.popup_button.Menu.AddItem (NSMenuItem.SeparatorItem); this.popup_button.AddItems (SparkleShare.Controller.Folders.ToArray ()); - this.popup_button.SelectItem (0); + + if (this.selected_log != null && + !SparkleShare.Controller.Folders.Contains (this.selected_log)) { + + this.selected_log = null; + } this.popup_button.Activated += delegate { if (this.popup_button.IndexOfSelectedItem == 0)