Skip to content

Commit

Permalink
Update objects, turn off editors when refreshing the outlineview
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Dec 29, 2024
1 parent ffa7cf7 commit faa7726
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GormCore/GormDocument.m
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,10 @@ - (void) awakeFromNib
[outlineScrollView setDocumentView: outlineView];
[objectViewController setOutlineView: outlineScrollView];
[outlineView setDataSource: self];
[self deactivateEditors];
[outlineView reloadData];
[self reactivateEditors];

RELEASE(outlineView);

[[objectViewController view] setAutoresizingMask:
Expand Down
2 changes: 2 additions & 0 deletions GormCore/GormObjectViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ - (IBAction) iconView: (id)sender
- (IBAction) outlineView: (id)sender
{
NSLog(@"Called %@", NSStringFromSelector(_cmd));
[_document deactivateEditors];
[[_outlineView documentView] reloadData];
[_document reactivateEditors];
[self resetDisplayView: _outlineView];
}

Expand Down

0 comments on commit faa7726

Please sign in to comment.