diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTableView.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m index e53a38e8..4acf4879 100644 --- a/Source/SPTableView.m +++ b/Source/SPTableView.m @@ -42,6 +42,11 @@ && [[[self window] delegate] isWorking]) return nil; + // Check to see whether any edits-in-progress need to be saved before changing selections + if ([[[[[self window] delegate] class] description] isEqualToString:@"TableDocument"] + && ![[[self window] delegate] couldCommitCurrentViewActions]) + return nil; + // If more than one row is selected only returns the default contextual menu if([self numberOfSelectedRows] > 1) return [self menu]; |