Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix in setSelectedMenuItem:, it calculated the index path wrongly.

  • Loading branch information...
commit c7e20bdec8f54f34eedf226f1206506b2c79f4cb 1 parent 3898334
marc hoffman authored April 03, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  GCJumpBar/GCJumpBar.m
2  GCJumpBar/GCJumpBar.m
@@ -383,8 +383,8 @@ - (NSMenuItem *)selectedMenuItem {
383 383
 - (void)setSelectedMenuItem:(NSMenuItem *)selectedMenuItem {
384 384
     NSIndexPath* indexPath = [NSIndexPath indexPathWithIndex:[selectedMenuItem.menu indexOfItem:selectedMenuItem]];
385 385
     while (selectedMenuItem.parentItem != nil) {
386  
-        indexPath = [indexPath indexPathByAddingIndexInFront:[selectedMenuItem.menu indexOfItem:selectedMenuItem]];
387 386
         selectedMenuItem = selectedMenuItem.parentItem;
  387
+        indexPath = [indexPath indexPathByAddingIndexInFront:[selectedMenuItem.menu indexOfItem:selectedMenuItem]];
388 388
     }
389 389
     
390 390
     self.selectedIndexPath = indexPath;

0 notes on commit c7e20bd

Please sign in to comment.
Something went wrong with that request. Please try again.