diff options
author | rowanbeentje <rowan@beent.je> | 2009-10-27 01:24:00 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-10-27 01:24:00 +0000 |
commit | a99b0940d264ffbc4c525c5f17049f64e391ccc3 (patch) | |
tree | 2a8c20d71f0d15ff66bf464805542cf1f0e8b9cd /Source/TablesList.m | |
parent | 9e6adb426de189704f0d0fe09b926b286dbb813e (diff) | |
download | sequelpro-a99b0940d264ffbc4c525c5f17049f64e391ccc3.tar.gz sequelpro-a99b0940d264ffbc4c525c5f17049f64e391ccc3.tar.bz2 sequelpro-a99b0940d264ffbc4c525c5f17049f64e391ccc3.zip |
- Set up TableSource to respond to task notifications to prepare for threaded queries
- Alter task notifications to pass the TableDocument as the notification object so that only the current window responds to the notification, allowing other windows to be fully used while a window is performing a task
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]; |