]> granicus.if.org Git - handbrake/commitdiff
MacGui: Change the format for individual activity log file names.
authordynaflash <dynaflashtech@gmail.com>
Fri, 26 Jun 2009 14:33:24 +0000 (14:33 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Fri, 26 Jun 2009 14:33:24 +0000 (14:33 +0000)
- Put the output file's base name first .... should make searching for logs easier as per lingui.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2625 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBOutputPanelController.m

index e27f4205d076c9f7e3a7a06b8ecf8cba5c511912..f4bdf90daf2f485e2575a9da4e9375ffbb6afa7c 100644 (file)
     NSString *dateForLogTitle = [NSString stringWithFormat:@"%02d-%02d-%02d %02d-%02d-%02d",now->tm_year + 1900, now->tm_mon + 1, now->tm_mday,now->tm_hour, now->tm_min, now->tm_sec]; 
     
     /* Assemble the new log file name as YY-MM-DD HH-MM-SS mymoviename.txt */
-    NSString *outputDateFileName = [NSString stringWithFormat:@"%@ %@.txt",dateForLogTitle,[[outputFileForEncode lastPathComponent] stringByDeletingPathExtension]];
+    NSString *outputDateFileName = [NSString stringWithFormat:@"%@ %@.txt",[[outputFileForEncode lastPathComponent] stringByDeletingPathExtension],dateForLogTitle];
     if ([[NSUserDefaults standardUserDefaults] boolForKey:@"EncodeLogLocation"]) // if we are putting it in the same directory with the movie
     {