aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPComboPopupButton.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-04-01 00:25:00 +0000
committerrowanbeentje <rowan@beent.je>2013-04-01 00:25:00 +0000
commit6820099de060cbede59f43867a62be5eb424ae4c (patch)
tree7b192a546f1dafc5f5f3ad1e91e1a870085125c4 /Source/SPComboPopupButton.m
parentcca030a98637bec8e8a731efb7ad15b3f458b115 (diff)
downloadsequelpro-6820099de060cbede59f43867a62be5eb424ae4c.tar.gz
sequelpro-6820099de060cbede59f43867a62be5eb424ae4c.tar.bz2
sequelpro-6820099de060cbede59f43867a62be5eb424ae4c.zip
- Alter the SPComboPopupButton to ignore clicks started in the left-hand part of the button but ended in the right-hand part of the button
- Change the button to use "Run All" instead of "Run All Queries" to avoid localisation issues
Diffstat (limited to 'Source/SPComboPopupButton.m')
-rw-r--r--Source/SPComboPopupButton.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPComboPopupButton.m b/Source/SPComboPopupButton.m
index 76280dac..9ee71084 100644
--- a/Source/SPComboPopupButton.m
+++ b/Source/SPComboPopupButton.m
@@ -283,7 +283,7 @@
// Custom tracking to be performed - indent the vertical button area slightly
- activeRect = NSMakeRect(cellFrame.origin.x, cellFrame.origin.y + heightIndent, cellFrame.size.width, cellFrame.size.height - fabsf(2 * heightIndent));
+ activeRect = NSMakeRect(cellFrame.origin.x, cellFrame.origin.y + heightIndent, cellFrame.size.width - [(SPComboPopupButton *)controlView lineOffset] + 1, cellFrame.size.height - fabsf(2 * heightIndent));
// Continue tracking the mouse while it's down, updating the state as it enters and leaves the cell,
// until it is released; if still within the cell, perform a click.