summaryrefslogtreecommitdiffstats
path: root/macosx/HBOutputPanelController.m
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-11-15 14:48:16 +0000
committerdynaflash <[email protected]>2007-11-15 14:48:16 +0000
commitd5d153eff85cb7639f962d731ac1b25d2c3d8c0c (patch)
tree30b1ff10ab47e87bc8185d3356e9f801cf93dcb2 /macosx/HBOutputPanelController.m
parentc55d0def9e7e933ad0a214d8ef567f290eb14a17 (diff)
MacGui: Move app support directory check to -init in controller.mm
- Makes ~/Library/Application Support/HandBrake available to HBOutputPanelController immediately - Elimates duplicate code to check for app support directory for both the presets as well as the activity log (as well as any other future features that will require this directory) - Also fixed issue where clicking "Discard" in the update alert closes the main window and won't let it come back (this will be totally unnecessary once the Sparkle update system is implemented). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1061 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBOutputPanelController.m')
-rw-r--r--macosx/HBOutputPanelController.m14
1 files changed, 2 insertions, 12 deletions
diff --git a/macosx/HBOutputPanelController.m b/macosx/HBOutputPanelController.m
index deb15d5fd..fd5f71f99 100644
--- a/macosx/HBOutputPanelController.m
+++ b/macosx/HBOutputPanelController.m
@@ -35,21 +35,11 @@
/* We declare the default NSFileManager into fileManager */
NSFileManager * fileManager = [NSFileManager defaultManager];
- /* we set the files and support paths here */
- NSString *AppSupportDirectory = @"~/Library/Application Support/HandBrake";
- AppSupportDirectory = [AppSupportDirectory stringByExpandingTildeInPath];
- /* First, lets verify that the app support directory exists */
- if ([fileManager fileExistsAtPath:AppSupportDirectory] == 0)
- {
- /* If it doesnt exist yet, we create it here */
- [fileManager createDirectoryAtPath:AppSupportDirectory attributes:nil];
- }
-
/* Establish the log file and location to write to */
/* We are initially using a .txt file as opposed to a .log file since it will open by
- * default with the users text editor instead of the .log default Console.app, should
+ * default with the users text editor instead of the .log default Console.app, should
* create less confusion for less experienced users when we ask them to paste the log for support
- */
+ */
outputLogFile = @"~/Library/Application Support/HandBrake/HandBrake-activitylog.txt";
outputLogFile = [[outputLogFile stringByExpandingTildeInPath]retain];