Fixed a bug where "Reset to Defaults" in the Columns menu wouldn't refresh menu items' marked state.

This commit is contained in:
Virgil Dupras 2012-07-31 10:35:19 -04:00
parent caf04f0d3f
commit 9e7d27dcda
1 changed files with 2 additions and 0 deletions

View File

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