aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-08-16 20:25:30 +0000
committerrowanbeentje <rowan@beent.je>2012-08-16 20:25:30 +0000
commit70467916504f6052869dfdf618e5a677bd0cf366 (patch)
tree454166da4163b6f1de323a846dbf0c78f9c4280c /Source
parent097676f7aaf6a95229fe5c57715e19716af57221 (diff)
downloadsequelpro-70467916504f6052869dfdf618e5a677bd0cf366.tar.gz
sequelpro-70467916504f6052869dfdf618e5a677bd0cf366.tar.bz2
sequelpro-70467916504f6052869dfdf618e5a677bd0cf366.zip
- Fix crashes when closing connections while an autorefreshing database process list is using that connection
Diffstat (limited to 'Source')
-rw-r--r--Source/SPDatabaseDocument.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 714a58c1..c296fba6 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -5724,8 +5724,11 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase";
[prefs removeObserver:tableContentInstance forKeyPath:SPGlobalResultTableFont];
[prefs removeObserver:[SPQueryController sharedQueryController] forKeyPath:SPConsoleEnableLogging];
[prefs removeObserver:self forKeyPath:SPConsoleEnableLogging];
-
- if (processListController) [prefs removeObserver:processListController forKeyPath:SPDisplayTableViewVerticalGridlines];
+
+ if (processListController) {
+ [processListController close];
+ [prefs removeObserver:processListController forKeyPath:SPDisplayTableViewVerticalGridlines];
+ }
if (serverVariablesController) [prefs removeObserver:serverVariablesController forKeyPath:SPDisplayTableViewVerticalGridlines];
#endif