diff options
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r-- | Source/TablesList.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m index 2d56938d..5be863fd 100644 --- a/Source/TablesList.m +++ b/Source/TablesList.m @@ -1541,6 +1541,10 @@ */ - (void) startDocumentTaskForTab:(NSNotification *)aNotification { + + // Only proceed if the notification was received from the current document. + if ([aNotification object] != tableDocumentInstance) return; + [tablesListView setEnabled:NO]; [toolbarAddButton setEnabled:NO]; [toolbarActionsButton setEnabled:NO]; @@ -1552,6 +1556,8 @@ */ - (void) endDocumentTaskForTab:(NSNotification *)aNotification { + if ([aNotification object] != tableDocumentInstance) return; + [tablesListView setEnabled:YES]; [toolbarAddButton setEnabled:YES]; [toolbarActionsButton setEnabled:YES]; |