aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-02-23 01:26:33 +0000
committerrowanbeentje <rowan@beent.je>2010-02-23 01:26:33 +0000
commita24e9c697049bacb587835153e2ebb4764fff008 (patch)
treebab464b0eb1c44bb35ed745d41ba2e46beb9350d /Source/TableDocument.m
parentc11169058366ca679789bc82cf1b3ca8ed496967 (diff)
downloadsequelpro-a24e9c697049bacb587835153e2ebb4764fff008.tar.gz
sequelpro-a24e9c697049bacb587835153e2ebb4764fff008.tar.bz2
sequelpro-a24e9c697049bacb587835153e2ebb4764fff008.zip
Fix Issue #574 (foreign key links not working after first use):
- Move foreign key reference loading into it's own task and set state modification markers to allow it to override the table state history - Rename modifyingHistoryState to modifyingState now the usge has broadened slightly
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 67d30f71..25fa50a0 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -991,10 +991,10 @@
NSAutoreleasePool *taskPool = [[NSAutoreleasePool alloc] init];
// Save existing scroll position and details, and ensure no duplicate entries are created as table list changes
- BOOL historyStateChanging = [spHistoryControllerInstance modifyingHistoryState];
+ BOOL historyStateChanging = [spHistoryControllerInstance modifyingState];
if (!historyStateChanging) {
[spHistoryControllerInstance updateHistoryEntries];
- [spHistoryControllerInstance setModifyingHistoryState:YES];
+ [spHistoryControllerInstance setModifyingState:YES];
}
// show error on connection failed
@@ -1018,7 +1018,7 @@
// Add a history entry
if (!historyStateChanging) {
- [spHistoryControllerInstance setModifyingHistoryState:NO];
+ [spHistoryControllerInstance setModifyingState:NO];
[spHistoryControllerInstance updateHistoryEntries];
}