diff options
author | dynaflash <[email protected]> | 2008-12-11 15:59:55 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-12-11 15:59:55 +0000 |
commit | 3cbb0bd29a2d3e4a9c1046f18e636c17baef65b2 (patch) | |
tree | 1892c9959069fc9d6d776fa0558d7cabc761c8ac | |
parent | 0478184d03c30f957befbc3b6f7477c794942660 (diff) |
MacGui: Fix destination path so that last one used in the destination choice window is saved and reused upon the next opening instead of the last destination path encoded.
- Addressed here http://forum.handbrake.fr/viewtopic.php?f=12&t=8281
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2019 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/Controller.mm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 1da9162ce..0a8428221 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -1519,11 +1519,14 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It } - (void) browseFileDone: (NSSavePanel *) sheet - returnCode: (int) returnCode contextInfo: (void *) contextInfo + returnCode: (int) returnCode contextInfo: (void *) contextInfo { if( returnCode == NSOKButton ) { [fDstFile2Field setStringValue: [sheet filename]]; + /* Save this path to the prefs so that on next browse destination window it opens there */ + NSString *destinationDirectory = [[fDstFile2Field stringValue] stringByDeletingLastPathComponent]; + [[NSUserDefaults standardUserDefaults] setObject:destinationDirectory forKey:@"LastDestinationDirectory"]; } } @@ -3276,15 +3279,13 @@ fWorkingCount = 0; otherwise, just rip the queue */ if(fPendingCount == 0) { - [self writeToActivityLog: "Rip: No pending jobs, so sending this one to doAddToQueue"]; - [self doAddToQueue]; + [self writeToActivityLog: "Rip: No pending jobs, so sending this one to doAddToQueue"]; + [self doAddToQueue]; } - NSString *destinationDirectory = [[fDstFile2Field stringValue] stringByDeletingLastPathComponent]; - [[NSUserDefaults standardUserDefaults] setObject:destinationDirectory forKey:@"LastDestinationDirectory"]; /* go right to processing the new queue encode */ - [self writeToActivityLog: "Rip: Going right to performNewQueueScan"]; - [self performNewQueueScan:[[QueueFileArray objectAtIndex:currentQueueEncodeIndex] objectForKey:@"SourcePath"] scanTitleNum:[[[QueueFileArray objectAtIndex:currentQueueEncodeIndex] objectForKey:@"TitleNumber"]intValue]]; + [self writeToActivityLog: "Rip: Going right to performNewQueueScan"]; + [self performNewQueueScan:[[QueueFileArray objectAtIndex:currentQueueEncodeIndex] objectForKey:@"SourcePath"] scanTitleNum:[[[QueueFileArray objectAtIndex:currentQueueEncodeIndex] objectForKey:@"TitleNumber"]intValue]]; } } |