aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowAdditions.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-03-18 20:05:36 +0000
committerstuconnolly <stuart02@gmail.com>2012-03-18 20:05:36 +0000
commit524e8c356b4074f5be5933b0551374a130a8f6d1 (patch)
tree0dab40735f2d9484930050cd08376cbf15e4ea55 /Source/SPWindowAdditions.m
parentbe3263f8158cb6f3dfa1005f49beefa7e494b852 (diff)
downloadsequelpro-524e8c356b4074f5be5933b0551374a130a8f6d1.tar.gz
sequelpro-524e8c356b4074f5be5933b0551374a130a8f6d1.tar.bz2
sequelpro-524e8c356b4074f5be5933b0551374a130a8f6d1.zip
Bring outline view branch up to date with trunk (r3471:r3517).
Diffstat (limited to 'Source/SPWindowAdditions.m')
-rw-r--r--Source/SPWindowAdditions.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPWindowAdditions.m b/Source/SPWindowAdditions.m
index 676019ee..ab0b35bc 100644
--- a/Source/SPWindowAdditions.m
+++ b/Source/SPWindowAdditions.m
@@ -35,7 +35,7 @@
- (CGFloat)toolbarHeight
{
NSRect windowFrame;
- CGFloat toolbarHeight = 0.0;
+ CGFloat toolbarHeight = 0.0f;
if ([self toolbar] && [[self toolbar] isVisible]) {
windowFrame = [NSWindow contentRectForFrameRect:[self frame] styleMask:[self styleMask]];
@@ -83,10 +83,12 @@
if( frontDoc && [frontDoc isKindOfClass:[SPDatabaseDocument class]]
&& [frontDoc valueForKeyPath:@"spHistoryControllerInstance"]
&& ![frontDoc isWorking])
+ {
if([anEvent deltaX] == -1.0f)
[[frontDoc valueForKeyPath:@"spHistoryControllerInstance"] valueForKey:@"goForwardInHistory"];
else if([anEvent deltaX] == 1.0f)
[[frontDoc valueForKeyPath:@"spHistoryControllerInstance"] valueForKey:@"goBackInHistory"];
+ }
}