diff options
author | Max <post@wickenrode.com> | 2015-09-30 17:45:52 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-10-02 19:41:32 +0200 |
commit | 10fd5b3cfd983bdbba152bcb9f2e5d0fa7a06976 (patch) | |
tree | bb947df61150fd1d104d63286a669558add08218 | |
parent | 312227a2fddf70b16cadb8d46eb6b68a24aec6c7 (diff) | |
download | sequelpro-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)
-rw-r--r-- | Source/SPBundleCommandTextView.m | 7 |
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 |