diff options
author | stuconnolly <stuart02@gmail.com> | 2010-09-20 19:59:06 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-09-20 19:59:06 +0000 |
commit | 5b66adf4b687c872b9ad6223779c9f2e1256c12a (patch) | |
tree | d14906b4b13d5c31a8848b4c1f9f6fcc45de379e /Source/SPDatabaseDocument.m | |
parent | e0ed4d4743e255c3a381396a46b3e1c6efa93ccb (diff) | |
download | sequelpro-5b66adf4b687c872b9ad6223779c9f2e1256c12a.tar.gz sequelpro-5b66adf4b687c872b9ad6223779c9f2e1256c12a.tar.bz2 sequelpro-5b66adf4b687c872b9ad6223779c9f2e1256c12a.zip |
Very minor tidy up.
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 1a0ae6d6..0ef05264 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -165,8 +165,6 @@ // Register observers for the when the UseMonospacedFonts preference changes [prefs addObserver:tableSourceInstance forKeyPath:SPUseMonospacedFonts options:NSKeyValueObservingOptionNew context:NULL]; - // [prefs addObserver:tableContentInstance forKeyPath:SPUseMonospacedFonts options:NSKeyValueObservingOptionNew context:NULL]; - // [prefs addObserver:customQueryInstance forKeyPath:SPUseMonospacedFonts options:NSKeyValueObservingOptionNew context:NULL]; [prefs addObserver:[SPQueryController sharedQueryController] forKeyPath:SPUseMonospacedFonts options:NSKeyValueObservingOptionNew context:NULL]; [prefs addObserver:tableContentInstance forKeyPath:SPGlobalResultTableFont options:NSKeyValueObservingOptionNew context:NULL]; @@ -4676,7 +4674,6 @@ */ - (void)dealloc { - // Unregister observers [prefs removeObserver:self forKeyPath:SPDisplayTableViewVerticalGridlines]; [prefs removeObserver:tableSourceInstance forKeyPath:SPDisplayTableViewVerticalGridlines]; @@ -4689,8 +4686,10 @@ [prefs removeObserver:tableContentInstance forKeyPath:SPGlobalResultTableFont]; [prefs removeObserver:[SPQueryController sharedQueryController] forKeyPath:SPConsoleEnableLogging]; [prefs removeObserver:self forKeyPath:SPConsoleEnableLogging]; + if (processListController) [prefs removeObserver:processListController forKeyPath:SPDisplayTableViewVerticalGridlines]; if (serverVariablesController) [prefs removeObserver:serverVariablesController forKeyPath:SPDisplayTableViewVerticalGridlines]; + [[NSNotificationCenter defaultCenter] removeObserver:self]; [NSObject cancelPreviousPerformRequestsWithTarget:self]; |