diff options
author | rowanbeentje <rowan@beent.je> | 2009-11-11 01:08:29 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-11-11 01:08:29 +0000 |
commit | ae2abb7fb1a1f902939ca3d419f1f81cb95726f1 (patch) | |
tree | ec60be61d7a1e738363e3146734bdfb3627e5a43 /Source/TablesList.m | |
parent | f7f1c7bd05538feca61f735f6039e548f9d7ad5e (diff) | |
download | sequelpro-ae2abb7fb1a1f902939ca3d419f1f81cb95726f1.tar.gz sequelpro-ae2abb7fb1a1f902939ca3d419f1f81cb95726f1.tar.bz2 sequelpro-ae2abb7fb1a1f902939ca3d419f1f81cb95726f1.zip |
- Rewrite field mapping table selection logic - simplified logic, no longer tied to table list selection. Much faster selection of table to import into if, eg, content view is selected. Fixes weird crashes.
- No longer display views as import targets
- When one import has been cancelled, still allow new imports
- Improve error reporting
- No longer re-sort table/view/etc names returned by TablesList as preferred order is being used for display and the default compare: reverts this
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r-- | Source/TablesList.m | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m index 5bba8be5..cb4959f5 100644 --- a/Source/TablesList.m +++ b/Source/TablesList.m @@ -971,7 +971,6 @@ if([NSArrayObjectAtIndex([self tableTypes],i) intValue] == SP_TABLETYPE_TABLE || [NSArrayObjectAtIndex([self tableTypes],i) intValue] == SP_TABLETYPE_VIEW) [returnArray addObject:NSArrayObjectAtIndex([self tables], i)]; } - [returnArray sortUsingSelector:@selector(compare:)]; return returnArray; } - (NSArray *)allTableNames @@ -983,7 +982,6 @@ if([NSArrayObjectAtIndex([self tableTypes],i) intValue] == SP_TABLETYPE_TABLE) [returnArray addObject:NSArrayObjectAtIndex([self tables], i)]; } - [returnArray sortUsingSelector:@selector(compare:)]; return returnArray; } - (NSArray *)allViewNames @@ -1007,7 +1005,6 @@ if([NSArrayObjectAtIndex([self tableTypes],i) intValue] == SP_TABLETYPE_PROC) [returnArray addObject:NSArrayObjectAtIndex([self tables], i)]; } - [returnArray sortUsingSelector:@selector(compare:)]; return returnArray; } - (NSArray *)allFunctionNames @@ -1019,7 +1016,6 @@ if([NSArrayObjectAtIndex([self tableTypes],i) intValue] == SP_TABLETYPE_FUNC) [returnArray addObject:NSArrayObjectAtIndex([self tables], i)]; } - [returnArray sortUsingSelector:@selector(compare:)]; return returnArray; } |