From: ritsuka Date: Mon, 29 Dec 2014 08:43:30 +0000 (+0000) Subject: MacGui: set the default name for the exported chapters to the destination file name... X-Git-Tag: 1.0.0~1631 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e93087497f97e0615fa3d05aea6b157b9b88480;p=handbrake MacGui: set the default name for the exported chapters to the destination file name again. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6670 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/macosx/HBChapterTitlesController.m b/macosx/HBChapterTitlesController.m index ad48b48fe..0ad874a08 100644 --- a/macosx/HBChapterTitlesController.m +++ b/macosx/HBChapterTitlesController.m @@ -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 */