From 09ed4be7e668dc10e0c4ca9178f8e1c414997b57 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 2 Apr 2012 00:23:52 +0000 Subject: PSMTabBar improvements: - Add a new -destroyAnimations method to the tab bar and call it when tearing down the parent SPWindowController; this prevents animations redrawing the document after window close, fixing a number of crashes. - Improve the logic for collapsing and uncollapsing the tab bar as tabs are added and removed, fixing height calculation errors leading to Issue #1082 - Improve tab bar draw when animating in the Sequel Pro tab style --- Source/SPWindowController.m | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/SPWindowController.m') diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m index ed538312..7e461177 100644 --- a/Source/SPWindowController.m +++ b/Source/SPWindowController.m @@ -101,6 +101,9 @@ enum { { [[NSNotificationCenter defaultCenter] removeObserver:self]; + // Tear down the animations on the tab bar to stop redraws + [tabBar destroyAnimations]; + [managedDatabaseConnections release]; [super dealloc]; -- cgit v1.2.3