Fixed sorting and selection of database icons (issue #118)

This commit is contained in:
Dennis Bolio
2014-04-15 00:01:26 +02:00
parent acb5d6de04
commit ea6db31d03
3 changed files with 37 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ NSInteger const kMPDefaultIcon = -1;
NSButton *button = sender;
NSImage *image = [button image];
NSUInteger buttonIndex = [[self.iconCollectionView content] indexOfObject:image];
self.selectedIcon = [[[MPIconHelper availableIconNames] allKeys][buttonIndex] integerValue];
self.selectedIcon = [[MPIconHelper databaseIconType] [buttonIndex] integerValue];
[self.popover performClose:self];
}