event log: revert to All Folders when deleting a folder and said folder is displayed in the event log

This commit is contained in:
Hylke Bons 2011-06-23 01:04:44 +01:00
parent f147436973
commit 26c4600e21

View file

@ -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)