]> granicus.if.org Git - handbrake/commitdiff
MacGui: set the default name for the exported chapters to the destination file name...
authorritsuka <damiog@gmail.com>
Mon, 29 Dec 2014 08:43:30 +0000 (08:43 +0000)
committerritsuka <damiog@gmail.com>
Mon, 29 Dec 2014 08:43:30 +0000 (08:43 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6670 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBChapterTitlesController.m

index ad48b48fe329404e7c0e66449e434141c9682a89..0ad874a08815ce343bd3b29a23aa67599d3ffb8a 100644 (file)
@@ -204,7 +204,7 @@ a timer to avoid interfering with the chain of events that handles the edit. */
     NSSavePanel *panel = [NSSavePanel savePanel];
     [panel setAllowedFileTypes:@[@"csv"]];
     [panel setDirectoryURL:[NSURL fileURLWithPath:destinationDirectory]];
-    //[panel setNameFieldStringValue:[[[fDstFile2Field stringValue] lastPathComponent] stringByDeletingPathExtension]];
+    [panel setNameFieldStringValue:self.job.destURL.lastPathComponent.stringByDeletingPathExtension];
 
     [panel beginSheetModalForWindow:[[self view] window] completionHandler:^(NSInteger result) {
         NSString *chapterName;      /* pointer for string for later file-writing */