Skip to content
Snippets Groups Projects
Commit 5bda10ad authored by George Nachman's avatar George Nachman
Browse files

Respect order of GUIDs when opening multiple profiles from bookmarks window

parent 5795a1f1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -146,6 +146,7 @@
// Dont' use this if you've called allowMultipleSelections
- (NSString*)selectedGuid;
- (NSSet*)selectedGuids;
- (NSArray *)orderedSelectedGuids;
- (void)dataChangeNotification:(id)sender;
- (void)onDoubleClick:(id)sender;
- (void)eraseQuery;
Loading
Loading
Loading
Loading
@@ -816,9 +816,9 @@ typedef enum { IsDefault = 1, IsNotDefault = 2 } BookmarkRowIsDefault;
return [bookmark objectForKey:KEY_GUID];
}
 
- (NSSet*)selectedGuids
- (NSArray *)orderedSelectedGuids
{
NSMutableSet* result = [[[NSMutableSet alloc] init] autorelease];
NSMutableArray* result = [[[NSMutableArray alloc] init] autorelease];
NSIndexSet* indexes = [tableView_ selectedRowIndexes];
NSUInteger theIndex = [indexes firstIndex];
while (theIndex != NSNotFound) {
Loading
Loading
@@ -832,6 +832,11 @@ typedef enum { IsDefault = 1, IsNotDefault = 2 } BookmarkRowIsDefault;
return result;
}
 
- (NSSet*)selectedGuids
{
return [NSSet setWithArray:[self orderedSelectedGuids]];
}
- (void)controlTextDidChange:(NSNotification *)aNotification
{
// search field changed
Loading
Loading
Loading
Loading
@@ -88,7 +88,7 @@ typedef enum {
 
- (void)_openBookmarkInTab:(BOOL)inTab firstInWindow:(BOOL)firstInWindow inPane:(PaneMode)inPane
{
NSSet* guids = [tableView_ selectedGuids];
NSArray* guids = [tableView_ orderedSelectedGuids];
if (![guids count]) {
NSBeep();
return;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment