aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-09-30 17:45:52 +0200
committerMax <post@wickenrode.com>2015-09-30 17:45:52 +0200
commit465062dacc96c2c84bfe9cff1ded58c14d01bdcd (patch)
tree14baa8a31201b1b97fae29c8dafd82fe61d41ab0
parent59a344d6f0fa735bd5940cf1e36d5cc78d202477 (diff)
downloadsequelpro-465062dacc96c2c84bfe9cff1ded58c14d01bdcd.tar.gz
sequelpro-465062dacc96c2c84bfe9cff1ded58c14d01bdcd.tar.bz2
sequelpro-465062dacc96c2c84bfe9cff1ded58c14d01bdcd.zip
Fix an exception when changing the tab indentation while the Bundle Editor is open (fixes #2246)
-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