Skip to content

Commit

Permalink
Last fix for #1145
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Aug 1, 2007
1 parent 2fa5bd4 commit af5240b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/ch/cyberduck/ui/cocoa/CDPreferencesController.java
Expand Up @@ -1650,10 +1650,11 @@ private void configureDefaultProtocolHandlerCombobox(NSPopUpButton defaultProtoc
defaultProtocolHandlerCombobox.addItem(app.infoDictionary().objectForKey("CFBundleName").toString());
final NSImage icon = NSWorkspace.sharedWorkspace().iconForFile(path);
icon.setSize(new NSSize(16f, 16f));
defaultProtocolHandlerCombobox.lastItem().setImage(icon);
defaultProtocolHandlerCombobox.lastItem().setRepresentedObject(bundleIdentifiers[i]);
final NSMenuItem item = defaultProtocolHandlerCombobox.lastItem();
item.setImage(icon);
item.setRepresentedObject(bundleIdentifiers[i]);
if(bundleIdentifiers[i].equals(defaultHandler)) {
defaultProtocolHandlerCombobox.selectItemAtIndex(i);
defaultProtocolHandlerCombobox.selectItem(item);
}
}
}
Expand Down

0 comments on commit af5240b

Please sign in to comment.