aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPBundleCommandTextView.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-09-30 17:45:52 +0200
committerMax <post@wickenrode.com>2015-10-02 19:41:32 +0200
commit10fd5b3cfd983bdbba152bcb9f2e5d0fa7a06976 (patch)
treebb947df61150fd1d104d63286a669558add08218 /Source/SPBundleCommandTextView.m
parent312227a2fddf70b16cadb8d46eb6b68a24aec6c7 (diff)
downloadsequelpro-10fd5b3cfd983bdbba152bcb9f2e5d0fa7a06976.tar.gz
sequelpro-10fd5b3cfd983bdbba152bcb9f2e5d0fa7a06976.tar.bz2
sequelpro-10fd5b3cfd983bdbba152bcb9f2e5d0fa7a06976.zip
Fix an exception when changing the tab indentation while the Bundle Editor is open (fixes #2246)
Diffstat (limited to 'Source/SPBundleCommandTextView.m')
-rw-r--r--Source/SPBundleCommandTextView.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPBundleCommandTextView.m b/Source/SPBundleCommandTextView.m
index f8d4e53f..4dfe4002 100644
--- a/Source/SPBundleCommandTextView.m
+++ b/Source/SPBundleCommandTextView.m
@@ -816,6 +816,13 @@
[commandScrollView display];
}
+- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
+{
+ if([keyPath isEqualToString:SPCustomQueryEditorTabStopWidth]) {
+ [self setTabStops];
+ }
+}
+
#pragma mark -
// Store the font in the prefs for selected delegates only