From d432919237a6ed22798851a112e8c49e5086b9ed Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 18 Apr 2010 22:46:02 +0000 Subject: - Add a new couldCommitCurrentViewActions method to TableDocument, and standardise current view-commit-checks to use that - Add checking of that status to history navigation (fixing http://spbug.com/l/127 ) and window closing (fixing http://spbug.com/lr/263 ) - Improve thread safety/deferred actions in TableContent --- Source/TablesList.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Source/TablesList.m') diff --git a/Source/TablesList.m b/Source/TablesList.m index 7d7eb586..78ec12f8 100644 --- a/Source/TablesList.m +++ b/Source/TablesList.m @@ -1429,12 +1429,8 @@ return NO; } - // We have to be sure that TableSource and TableContent have finished editing - if ( ![tableSourceInstance saveRowOnDeselect] || ![tableContentInstance saveRowOnDeselect] ) { - return NO; - } else { - return YES; - } + // We have to be sure that document views have finished editing + return [tableDocumentInstance couldCommitCurrentViewActions]; } /** -- cgit v1.2.3