summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorritsuka <[email protected]>2008-07-29 08:42:48 +0000
committerritsuka <[email protected]>2008-07-29 08:42:48 +0000
commitc334dbfa9fb0cca851fe45c8fb9ba0a4c147ba2e (patch)
tree634fb0df5593b5d419e7fa8beea4f9f009ba0970 /macosx
parente38491db043c50844d5d15a83e8fca483ac55510 (diff)
MacGui: Do not disable the ui if there is no reason to do so. Removed unused include.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1589 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.mm31
1 files changed, 5 insertions, 26 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index a2c949f0f..e87ae61a6 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -4,17 +4,11 @@
Homepage: <http://handbrake.fr/>.
It may be used under the terms of the GNU General Public License. */
-#include "Controller.h"
-#include "a52dec/a52.h"
+#import "Controller.h"
#import "HBOutputPanelController.h"
#import "HBPreferencesController.h"
-/* Added to integrate scanning into HBController */
-#include <IOKit/IOKitLib.h>
-#include <IOKit/storage/IOMedia.h>
-#include <IOKit/storage/IODVDMedia.h>
-#include "HBDVDDetector.h"
-#include "dvdread/dvd_reader.h"
-#include "HBPresets.h"
+#import "HBDVDDetector.h"
+#import "HBPresets.h"
#define DragDropSimplePboardType @"MyCustomOutlineViewPboardType"
@@ -988,7 +982,6 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
/*Opens the source browse window, called from Open Source widgets */
- (IBAction) browseSources: (id) sender
{
- [self enableUI: NO];
NSOpenPanel * panel;
panel = [NSOpenPanel openPanel];
@@ -1138,14 +1131,6 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
}
}
- else // User clicked Cancel in browse window
- {
- /* if we have a title loaded up */
- if ([[fSrcDVD2Field stringValue] length] > 0 && SuccessfulScan)
- {
- [self enableUI: YES];
- }
- }
}
/* Here we open the title selection sheet where we can specify an exact title to be scanned */
@@ -1191,6 +1176,8 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
[fChapterTitlesDelegate resetWithTitle:nil];
[fChapterTable reloadData];
+ [self enableUI: NO];
+
if( [detector isVideoDVD] )
{
// The chosen path was actually on a DVD, so use the raw block
@@ -1253,14 +1240,6 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
hb_scan( fHandle, [path UTF8String], scanTitleNum );
[fSrcDVD2Field setStringValue:@"Scanning new source ..."];
}
- else
- {
- /* if we have a title loaded up */
- if ([[fSrcDVD2Field stringValue] length] > 0 && SuccessfulScan)
- {
- [self enableUI: YES];
- }
- }
}
- (IBAction) showNewScan:(id)sender