mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 12:52:21 +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 "sparkle-project/Sparkle" ~> 1.13.1
|
||||||
github "mstarke/KeePassKit" "d7d64ef45f7785e0883e6257f852f9e08644a3f8"
|
github "mstarke/KeePassKit" "d8710185ff3c4f21c12f4c10eb68d570179c54ee"
|
||||||
github "mstarke/HNHUi" ~> 1.0
|
github "mstarke/HNHUi" ~> 1.0
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
github "mstarke/HNHUi" "1.0.1"
|
github "mstarke/HNHUi" "1.0.1"
|
||||||
github "mstarke/KeePassKit" "d7d64ef45f7785e0883e6257f852f9e08644a3f8"
|
github "mstarke/KeePassKit" "d8710185ff3c4f21c12f4c10eb68d570179c54ee"
|
||||||
github "sparkle-project/Sparkle" "1.13.1"
|
github "sparkle-project/Sparkle" "1.13.1"
|
||||||
|
|||||||
@@ -36,7 +36,9 @@
|
|||||||
@implementation MPOutlineDataSource
|
@implementation MPOutlineDataSource
|
||||||
|
|
||||||
- (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray *)items toPasteboard:(NSPasteboard *)pasteboard {
|
- (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];
|
self.localDraggedGroup = nil; id item = [[items lastObject] representedObject];
|
||||||
if(![item isKindOfClass:[KPKGroup class]]) {
|
if(![item isKindOfClass:[KPKGroup class]]) {
|
||||||
return NO;
|
return NO;
|
||||||
@@ -45,8 +47,6 @@
|
|||||||
[pasteboard writeObjects:@[draggedGroup]];
|
[pasteboard writeObjects:@[draggedGroup]];
|
||||||
return (nil != draggedGroup.parent);
|
return (nil != draggedGroup.parent);
|
||||||
}
|
}
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSDragOperation)outlineView:(NSOutlineView *)outlineView validateDrop:(id<NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(NSInteger)index {
|
- (NSDragOperation)outlineView:(NSOutlineView *)outlineView validateDrop:(id<NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(NSInteger)index {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user