diff options
author | rowanbeentje <rowan@beent.je> | 2010-05-19 22:37:04 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-05-19 22:37:04 +0000 |
commit | 85afb9383bda6d8c1fdfe4c04cee1de0933118f7 (patch) | |
tree | ff40286aa733b38b1d3273b2e2dbc99f85406ed2 /Source/SPTableView.m | |
parent | 17cd8e717d853946813deda9cb160832b445dfdd (diff) | |
download | sequelpro-85afb9383bda6d8c1fdfe4c04cee1de0933118f7.tar.gz sequelpro-85afb9383bda6d8c1fdfe4c04cee1de0933118f7.tar.bz2 sequelpro-85afb9383bda6d8c1fdfe4c04cee1de0933118f7.zip |
- Ensure any table changes are applied before switching tables as a result of a right-click. This should address much of Issue #691, and a number of crashes logged since 0.9.8
Diffstat (limited to 'Source/SPTableView.m')
-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]; |