summaryrefslogtreecommitdiffstats
path: root/macosx/HBController.m
diff options
context:
space:
mode:
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)
{