From 9e7d27dcdaed38928438c0e6f9122f4881be6b84 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Tue, 31 Jul 2012 10:35:19 -0400 Subject: [PATCH] Fixed a bug where "Reset to Defaults" in the Columns menu wouldn't refresh menu items' marked state. --- cocoa/base/ResultWindow.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocoa/base/ResultWindow.m b/cocoa/base/ResultWindow.m index de342c93..a7fec9fa 100644 --- a/cocoa/base/ResultWindow.m +++ b/cocoa/base/ResultWindow.m @@ -67,6 +67,7 @@ http://www.hardcoded.net/licenses/bsd_license /* Helpers */ - (void)fillColumnsMenu { + [[app columnsMenu] removeAllItems]; NSArray *menuItems = [[[table columns] model] menuItems]; for (NSInteger i=0; i < [menuItems count]; i++) { NSArray *pair = [menuItems objectAtIndex:i]; @@ -250,6 +251,7 @@ http://www.hardcoded.net/licenses/bsd_license - (void)resetColumnsToDefault { [[[table columns] model] resetToDefaults]; + [self fillColumnsMenu]; } - (void)revealSelected