summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
diff options
context:
space:
mode:
authorcleaner <[email protected]>2007-06-05 20:09:13 +0000
committercleaner <[email protected]>2007-06-05 20:09:13 +0000
commit1200c74a82f4715bc1d0651aeb4d39f6a3c9d449 (patch)
treea857d6e1dbeda47be574601ae713f02065c62942 /macosx/Controller.mm
parent7ff9af9ceddc698398ade193243b5c8479b5fed8 (diff)
Moved initialization of default preferences from [PrefsController awakeFromNib] to class method [PrefsController registerUserDefaults], which is called from [HBController init].
This fixes problem with preferences when using HB for the first time, or after deleting the user defaults file. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@599 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r--macosx/Controller.mm9
1 files changed, 5 insertions, 4 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index b3feb406c..e2fac51ab 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -7,6 +7,7 @@
#include "Controller.h"
#include "a52dec/a52.h"
#import "HBOutputPanelController.h"
+#import "PrefsController.h"
#define _(a) NSLocalizedString(a,NULL)
@@ -35,9 +36,10 @@ static int FormatSettings[3][4] =
- init
{
- self = [super init];
+ self = [super init];
+ [PrefsController registerUserDefaults];
fHandle = NULL;
- outputPanel = [[HBOutputPanelController alloc] init];
+ outputPanel = [[HBOutputPanelController alloc] init];
return self;
}
@@ -3387,8 +3389,7 @@ id theRecord, theValue;
- (IBAction)showDebugOutputPanel:(id)sender
{
- [outputPanel showOutputPanel:nil];
+ [outputPanel showOutputPanel:nil];
}
-
@end