diff options
author | rowanbeentje <rowan@beent.je> | 2009-11-05 00:00:23 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-11-05 00:00:23 +0000 |
commit | 4cc035fd625bc2ee76927cf9e7649af829ce8482 (patch) | |
tree | 170a8ac6da319e002f48e1ca561f55f5177d4209 /Source/TableSource.m | |
parent | 97fd0957cef34210caece133fee16a370e5b9f5d (diff) | |
download | sequelpro-4cc035fd625bc2ee76927cf9e7649af829ce8482.tar.gz sequelpro-4cc035fd625bc2ee76927cf9e7649af829ce8482.tar.bz2 sequelpro-4cc035fd625bc2ee76927cf9e7649af829ce8482.zip |
- Alter query start/stop notifications to apply to only the originating window, regardless of key state, by passing in and looking for the table document instance
Diffstat (limited to 'Source/TableSource.m')
-rw-r--r-- | Source/TableSource.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/TableSource.m b/Source/TableSource.m index 2111a498..3eb87932 100644 --- a/Source/TableSource.m +++ b/Source/TableSource.m @@ -86,7 +86,7 @@ loads aTable, put it in an array, update the tableViewColumns and reload the tab [editTableButton setEnabled:enableInteraction]; //query started - [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryWillBePerformed" object:self]; + [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryWillBePerformed" object:tableDocumentInstance]; //perform queries and load results in array (each row as a dictionary) tableSourceResult = [[mySQLConnection queryString:[NSString stringWithFormat:@"SHOW COLUMNS FROM %@", [selectedTable backtickQuotedString]]] retain]; @@ -245,7 +245,7 @@ loads aTable, put it in an array, update the tableViewColumns and reload the tab [copyFieldButton setEnabled:NO]; //query finished - [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:self]; + [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:tableDocumentInstance]; } /* @@ -1218,7 +1218,7 @@ would result in a position change. originalRowIndex = [[[info draggingPasteboard] stringForType:@"SequelProPasteboard"] intValue]; originalRow = [[NSDictionary alloc] initWithDictionary:[tableFields objectAtIndex:originalRowIndex]]; - [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryWillBePerformed" object:self]; + [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryWillBePerformed" object:tableDocumentInstance]; // Begin construction of the reordering query queryString = [NSMutableString stringWithFormat:@"ALTER TABLE %@ MODIFY COLUMN %@ %@", [selectedTable backtickQuotedString], @@ -1300,7 +1300,7 @@ would result in a position change. } } - [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:self]; + [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:tableDocumentInstance]; [originalRow release]; return YES; |