mirror of
https://github.com/dsward2/macSVG.git
synced 2026-05-28 00:20:58 +02:00
In NSOutlineView_Extensions mouseDown method, if user clicks on a row that is already selected, skip the call to deselectAll:. This fixes the problem with drag-and-drop for multiple items in the XML Outline View.
This commit is contained in:
@@ -306,7 +306,16 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
[self deselectAll:self];
|
||||
NSPoint globalLocation = theEvent.locationInWindow;
|
||||
NSPoint localLocation = [self convertPoint:globalLocation fromView:nil];
|
||||
NSInteger clickedRow = [self rowAtPoint:localLocation];
|
||||
|
||||
NSIndexSet * selectedRowIndexes = self.selectedRowIndexes;
|
||||
|
||||
if ([selectedRowIndexes containsIndex:clickedRow] == NO)
|
||||
{
|
||||
[self deselectAll:self];
|
||||
}
|
||||
}
|
||||
|
||||
[super mouseDown:theEvent];
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>3180</string>
|
||||
<string>3187</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.graphics-design</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
|
||||
@@ -2893,7 +2893,6 @@
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
//==================================================================================
|
||||
// outlineView:rowViewForItem:
|
||||
//==================================================================================
|
||||
@@ -2991,6 +2990,7 @@ static NSString * GenerateUniqueFileNameAtPath(NSString *path, NSString *basenam
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//==================================================================================
|
||||
// outlineView:writeItems:toPasteboard:
|
||||
//==================================================================================
|
||||
|
||||
Reference in New Issue
Block a user