summaryrefslogtreecommitdiffstats
path: root/macosx/ExpressController.m
diff options
context:
space:
mode:
authortiter <[email protected]>2006-03-18 22:33:55 +0000
committertiter <[email protected]>2006-03-18 22:33:55 +0000
commita463a6ad4bdd3fca16f31638a38f2f6ac4615105 (patch)
tree1a56055c7615e45b21f2eae451229a88126cfc82 /macosx/ExpressController.m
parenta9dec99c037cddb73d5a799dcfa8a7dee05d7dbe (diff)
Adds an "Insert DVD" message when nothing can be found
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@45 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/ExpressController.m')
-rw-r--r--macosx/ExpressController.m10
1 files changed, 7 insertions, 3 deletions
diff --git a/macosx/ExpressController.m b/macosx/ExpressController.m
index f9b6f95ef..7763d4e8c 100644
--- a/macosx/ExpressController.m
+++ b/macosx/ExpressController.m
@@ -1,6 +1,8 @@
#import "ExpressController.h"
#import "DriveDetector.h"
+#define INSERT_STRING @"Insert a DVD"
+
@interface ExpressController (Private)
- (void) openUpdateDrives: (NSArray *) drives;
@@ -234,10 +236,11 @@
{
[fOpenPopUp removeAllItems];
[fOpenPopUp addItemsWithTitles: drives];
- if( [fOpenPopUp numberOfItems] )
+ if( ![fOpenPopUp numberOfItems] )
{
- [fOpenPopUp selectItemAtIndex: 0];
+ [fOpenPopUp addItemWithTitle: INSERT_STRING];
}
+ [fOpenPopUp selectItemAtIndex: 0];
if( [fOpenMatrix isEnabled] )
{
[self openEnable: YES];
@@ -274,7 +277,8 @@
{
[fOpenFolderField setEnabled: NO];
[fOpenBrowseButton setEnabled: NO];
- if( ![fOpenPopUp numberOfItems] )
+ if( [[fOpenPopUp titleOfSelectedItem]
+ isEqualToString: INSERT_STRING] )
{
[fOpenGoButton setEnabled: NO];
}