diff options
author | ritsuka <[email protected]> | 2014-12-04 20:05:01 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-04 20:05:01 +0000 |
commit | 0e47f302addb3c331081524b73cc962ce17d7eb6 (patch) | |
tree | a0c4862ee685962b23b1f6c9463c54ee99fe048a /macosx | |
parent | 3748bca487db26b2bc411545c983a23f196407d0 (diff) |
MacGui: start a new scan from a drag & drop only if there isn't already one. Put back the outputPanel init I had accidentally moved after the HBCore one.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6583 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/Controller.m | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index 2c8685782..4ceddb617 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -72,6 +72,11 @@ NSString *keyTitleTag = @"keyTitleTag"; error:NULL]; } + // Inits the controllers + outputPanel = [[HBOutputPanelController alloc] init]; + fPictureController = [[HBPictureController alloc] init]; + fQueueController = [[HBQueueController alloc] init]; + // we init the HBPresetsManager class NSURL *presetsURL = [NSURL fileURLWithPath:[[HBUtilities appSupportPath] stringByAppendingPathComponent:@"UserPresets.plist"]]; presetManager = [[HBPresetsManager alloc] initWithURL:presetsURL]; @@ -112,11 +117,6 @@ NSString *keyTitleTag = @"keyTitleTag"; // Set the Growl Delegate [GrowlApplicationBridge setGrowlDelegate: self]; - // Inits the controllers - outputPanel = [[HBOutputPanelController alloc] init]; - fPictureController = [[HBPictureController alloc] init]; - fQueueController = [[HBQueueController alloc] init]; - [fPictureController setDelegate:self]; [fPictureController setHandle:self.core.hb_handle]; @@ -287,10 +287,13 @@ NSString *keyTitleTag = @"keyTitleTag"; - (void)openFile:(NSString *)filePath { - [browsedSourceDisplayName release]; - browsedSourceDisplayName = [filePath.lastPathComponent retain]; + if (self.core.state != HBStateScanning) + { + [browsedSourceDisplayName release]; + browsedSourceDisplayName = [filePath.lastPathComponent retain]; - [self performScan:filePath scanTitleNum:0]; + [self performScan:filePath scanTitleNum:0]; + } } #pragma mark - |