summaryrefslogtreecommitdiffstats
path: root/macosx/HBController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-05-27 10:53:05 +0200
committerDamiano Galassi <[email protected]>2016-05-27 10:53:05 +0200
commita34b503a4adcdaa500cc92d5e06efcbb3c2a4104 (patch)
tree359be1ec709bb6e17761aab4d6c0f8f2636f8db1 /macosx/HBController.m
parent6179ee67771e5e5f75f8226b2c5c47e78856342b (diff)
MacGui: select the feature title instead of the first title after a scan.
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r--macosx/HBController.m26
1 files changed, 13 insertions, 13 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m
index ab33ad5fe..776e78302 100644
--- a/macosx/HBController.m
+++ b/macosx/HBController.m
@@ -577,18 +577,6 @@
fSrcDVD2Field.stringValue = displayName;
[fSrcTitlePopUp addItemWithTitle:title.description];
-
- // See if this is the main feature according
- if (title.isFeatured)
- {
- [fSrcTitlePopUp selectItemWithTitle:title.description];
- }
- }
-
- // Select the first item is nothing is selected
- if (!fSrcTitlePopUp.selectedItem)
- {
- [fSrcTitlePopUp selectItemAtIndex:0];
}
completionHandler(self.core.titles);
@@ -609,7 +597,16 @@
{
[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:fileURL];
- HBJob *job = [self jobFromTitle:titles.firstObject];
+ HBTitle *featuredTitle = titles.firstObject;
+ for (HBTitle *title in titles)
+ {
+ if (title.isFeatured)
+ {
+ featuredTitle = title;
+ }
+ }
+
+ HBJob *job = [self jobFromTitle:featuredTitle];
self.job = job;
}];
}
@@ -716,6 +713,9 @@
HBTitle *title = job.title;
+ // Update the title selection popup.
+ [fSrcTitlePopUp selectItemWithTitle:title.description];
+
// If we are a stream type and a batch scan, grok the output file name from title->name upon title change
if (title.isStream && self.core.titles.count > 1)
{