aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-07-28 23:58:12 +0000
committerrowanbeentje <rowan@beent.je>2009-07-28 23:58:12 +0000
commit455c5326835d811b55d12b3ac8c0373608825b8d (patch)
tree80fea57e05c997e7dde93d913979324a33bb594f /Source/TablesList.m
parent87b88b489031f4860a231c24dc1e2bdfe776c2c8 (diff)
downloadsequelpro-455c5326835d811b55d12b3ac8c0373608825b8d.tar.gz
sequelpro-455c5326835d811b55d12b3ac8c0373608825b8d.tar.bz2
sequelpro-455c5326835d811b55d12b3ac8c0373608825b8d.zip
- Fix "endSheet:returnCode: requires a non-nil sheet" log lines during imports
- Enable threaded animation for import/export progress bars as it has minimal overhead and looks nicer - Fix exceptions caused by tablesList drawing during imports
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r--Source/TablesList.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m
index 947c2f41..f3c39d60 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -1506,6 +1506,12 @@
*/
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
{
+
+ // During imports the table view sometimes appears to request items beyond the end of the array.
+ // Using a hinted noteNumberOfRowsChanged after dropping tables fixes this but then seems to stick
+ // even after override, so check here for the time being and display empty rows during import.
+ if (rowIndex >= [filteredTables count]) return @"";
+
return [filteredTables objectAtIndex:rowIndex];
}