Skip to content

Commit 691fb32

Browse files
author
Galeas
committed
1.1 hotfix 1
1 parent f233280 commit 691fb32

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

CocoaPodUI/Controllers/PodsManagementViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,6 @@ - (BOOL)tableView:(NSTableView *)tableView acceptDrop:(id<NSDraggingInfo>)info r
486486
if (dropOperation == NSTableViewDropAbove) {
487487
NSPasteboard *pboard = [info draggingPasteboard];
488488
NSData *data = [pboard dataForType:kPodDataType];
489-
NSUInteger index = row <= [self.installedPods count] ? row : [self.installedPods count];
490489
PodItem *item = nil;
491490
if ([info draggingSource] != self.installedTable) {
492491
item = [NSKeyedUnarchiver unarchiveObjectWithData:data];
@@ -496,6 +495,7 @@ - (BOOL)tableView:(NSTableView *)tableView acceptDrop:(id<NSDraggingInfo>)info r
496495
item = [self.installedPods objectAtIndex:[indexes firstIndex]];
497496
}
498497
[self.installedPods removeObject:item];
498+
NSUInteger index = row <= [self.installedPods count] ? row : [self.installedPods count];
499499
[self.installedPods insertObject:item atIndex:index];
500500
[self.installedTable reloadData];
501501
[self setChanged:YES];

0 commit comments

Comments
 (0)