mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 00:02:28 +00:00
Fixed reordering bug on load
This commit is contained in:
2
Cartfile
2
Cartfile
@@ -1,3 +1,3 @@
|
||||
github "sparkle-project/Sparkle" ~> 1.13.1
|
||||
github "mstarke/KeePassKit" "d7d64ef45f7785e0883e6257f852f9e08644a3f8"
|
||||
github "mstarke/KeePassKit" "d8710185ff3c4f21c12f4c10eb68d570179c54ee"
|
||||
github "mstarke/HNHUi" ~> 1.0
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
github "mstarke/HNHUi" "1.0.1"
|
||||
github "mstarke/KeePassKit" "d7d64ef45f7785e0883e6257f852f9e08644a3f8"
|
||||
github "mstarke/KeePassKit" "d8710185ff3c4f21c12f4c10eb68d570179c54ee"
|
||||
github "sparkle-project/Sparkle" "1.13.1"
|
||||
|
||||
@@ -36,7 +36,9 @@
|
||||
@implementation MPOutlineDataSource
|
||||
|
||||
- (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray *)items toPasteboard:(NSPasteboard *)pasteboard {
|
||||
if([items count] == 1) {
|
||||
if(items.count != 1) {
|
||||
return NO;
|
||||
}
|
||||
self.localDraggedGroup = nil; id item = [[items lastObject] representedObject];
|
||||
if(![item isKindOfClass:[KPKGroup class]]) {
|
||||
return NO;
|
||||
@@ -44,8 +46,6 @@
|
||||
KPKGroup *draggedGroup = item;
|
||||
[pasteboard writeObjects:@[draggedGroup]];
|
||||
return (nil != draggedGroup.parent);
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (NSDragOperation)outlineView:(NSOutlineView *)outlineView validateDrop:(id<NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(NSInteger)index {
|
||||
|
||||
Reference in New Issue
Block a user