Revision: 15242
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15242&view=rev
Author: hofman
Date: 2009-04-29 21:31:51 +0000 (Wed, 29 Apr 2009)
Log Message:
-----------
ignore single clicks on selected group cell icon to avoid wrong alert
Modified Paths:
--------------
trunk/bibdesk/BDSKGroupOutlineView.m
Modified: trunk/bibdesk/BDSKGroupOutlineView.m
===================================================================
--- trunk/bibdesk/BDSKGroupOutlineView.m 2009-04-29 17:39:29 UTC (rev
15241)
+++ trunk/bibdesk/BDSKGroupOutlineView.m 2009-04-29 21:31:51 UTC (rev
15242)
@@ -112,19 +112,21 @@
}
- (void)mouseDown:(NSEvent *)theEvent{
- if ([theEvent clickCount] == 2) {
- NSPoint point = [self convertPoint:[theEvent locationInWindow]
fromView:nil];
- NSInteger row = [self rowAtPoint:point];
- NSInteger column = [self columnAtPoint:point];
- if (row != -1 && column == 0) {
- BDSKGroupCell *cell = [[[self tableColumns] objectAtIndex:0]
dataCellForRow:row];
- if ([cell respondsToSelector:@selector(iconRectForBounds:)]) {
- NSRect iconRect = [cell iconRectForBounds:[self
frameOfCellAtColumn:column row:row]];
- if (NSMouseInRect(point, iconRect, [self isFlipped])) {
+ NSPoint point = [self convertPoint:[theEvent locationInWindow]
fromView:nil];
+ NSInteger row = [self rowAtPoint:point];
+ NSInteger column = [self columnAtPoint:point];
+ if (row != -1 && column == 0) {
+ BDSKGroupCell *cell = [[[self tableColumns] objectAtIndex:0]
dataCellForRow:row];
+ if ([cell respondsToSelector:@selector(iconRectForBounds:)]) {
+ NSRect iconRect = [cell iconRectForBounds:[self
frameOfCellAtColumn:column row:row]];
+ if (NSMouseInRect(point, iconRect, [self isFlipped])) {
+ if ([theEvent clickCount] == 2) {
if ([[self delegate]
respondsToSelector:@selector(outlineView:doubleClickedOnIconOfItem:)])
[[self delegate] outlineView:self
doubleClickedOnIconOfItem:[self itemAtRow:row]];
return;
}
+ } else if ([self isRowSelected:row]) {
+ return;
}
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit