]> granicus.if.org Git - handbrake/commitdiff
MacGui: set a sort descriptor by default in the titles selection table.
authorDamiano Galassi <damiog@gmail.com>
Fri, 24 Feb 2017 08:26:08 +0000 (09:26 +0100)
committerDamiano Galassi <damiog@gmail.com>
Fri, 24 Feb 2017 08:26:08 +0000 (09:26 +0100)
macosx/HBTitleSelectionController.m

index 7ac625f3cf3e8f487daf65e8e868b2fa788a301a..b0f3e088adf5a62db5c9698e0b87e8951c842abe 100644 (file)
     return self;
 }
 
+- (void)windowDidLoad
+{
+    NSSortDescriptor *mySortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"title.index" ascending:YES];
+    self.arrayController.sortDescriptors = [NSArray arrayWithObject:mySortDescriptor];
+}
+
 - (IBAction)deselectAll:(id)sender
 {
     for (HBTitleSelection *title in self.titles)