summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2013-11-04 07:09:50 +0000
committerritsuka <[email protected]>2013-11-04 07:09:50 +0000
commit85df20369cf73f5115a1707a47a7ac52f2881efb (patch)
tree65f37715730a25b1a4456e0c1930bbc28c8bc2e5 /macosx/Controller.m
parentd0bfc7cd9a4df6c6277f78161241ec8b93cac8f5 (diff)
MacGUI: Refactor HBPreviewController. Rename the actual class to HBPreviewController, and move the image and video creation code to a separate HBPreviewGenerator class. Update the preview duration list as Rodeo suggested.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5874 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.m')
-rw-r--r--macosx/Controller.m11
1 files changed, 8 insertions, 3 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index 413963b1d..cd3f98bfa 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -209,9 +209,9 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
// Set the Growl Delegate
[GrowlApplicationBridge setGrowlDelegate: self];
/* Init others controllers */
- [fPictureController setHandle: fHandle];
[fPictureController setDelegate: self];
-
+ [fPictureController setHandle: fHandle];
+
[fQueueController setHandle: fQueueEncodeLibhb];
[fQueueController setHBController: self];
@@ -1941,7 +1941,9 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
// Notify Subtitles that there's no title
[fSubtitlesDelegate resetWithTitle:nil];
[fSubtitlesTable reloadData];
-
+
+ [fPictureController setTitle:NULL];
+
// Notify anyone interested (audio controller) that there's no title
[[NSNotificationCenter defaultCenter] postNotification:
[NSNotification notificationWithName: HBTitleChangedNotification
@@ -2077,6 +2079,9 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
[fChapterTitlesDelegate resetWithTitle:nil];
[fChapterTable reloadData];
+ // Notify PictureController that there's no title
+ [fPictureController setTitle:NULL];
+
// Notify anyone interested (audio controller) that there's no title
[[NSNotificationCenter defaultCenter] postNotification:
[NSNotification notificationWithName: HBTitleChangedNotification