diff options
author | rowanbeentje <rowan@beent.je> | 2010-04-12 22:01:44 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-04-12 22:01:44 +0000 |
commit | 688345df80bb228e9c26b13ccec0710850223123 (patch) | |
tree | 8ffc579b020361c25bc9d3a4f484544d8d736de9 /Source/TableContent.m | |
parent | bc1f5c488f532023c5ebb545449e05409b19cded (diff) | |
download | sequelpro-688345df80bb228e9c26b13ccec0710850223123.tar.gz sequelpro-688345df80bb228e9c26b13ccec0710850223123.tar.bz2 sequelpro-688345df80bb228e9c26b13ccec0710850223123.zip |
Review usage of notifications, afterDelay: and waitUntilDone:NO calls:
- Add more calls to deregister watchers to fix crashes to closing threads or objects
- Fix a couple of memory leaks
- Alter a few calls to be performed on main thread (afterDelay: operates on the thread is is called on) - this fixed database reloading after import and field/index deletion error sheets
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index 78e47b9a..82f2c39c 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -731,7 +731,7 @@ [tableDocumentInstance setTaskPercentage:(rowsProcessed*relativeTargetRowCount)]; } else if (rowsProcessed == targetRowCount) { [tableDocumentInstance setTaskPercentage:100.0]; - [tableDocumentInstance performSelectorOnMainThread:@selector(setTaskProgressToIndeterminateAfterDelay:) withObject:[NSNumber numberWithBool:YES] waitUntilDone:NO]; + [[tableDocumentInstance onMainThread] setTaskProgressToIndeterminateAfterDelay:YES]; } } |