summaryrefslogtreecommitdiffstats
path: root/macosx/ScanController.mm
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-08-19 05:34:59 +0000
committerdynaflash <[email protected]>2007-08-19 05:34:59 +0000
commit9881280c50134cb530a1c89156f8ab4f47f1f061 (patch)
treee5fd50bb8f4224981611ee21422703531c939f5f /macosx/ScanController.mm
parentdc7de71e4a72544d35853838b1737c564b51e934 (diff)
MacGui: Fix main menu enabling if user cancels the source browse window
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@834 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/ScanController.mm')
-rw-r--r--macosx/ScanController.mm12
1 files changed, 12 insertions, 0 deletions
diff --git a/macosx/ScanController.mm b/macosx/ScanController.mm
index 81b27236c..01aa0026e 100644
--- a/macosx/ScanController.mm
+++ b/macosx/ScanController.mm
@@ -95,6 +95,18 @@
}
else // User clicked Cancel in browse window
{
+ /* use the outlets to the main menu bar to determine what to
+ enable and disable */
+ [fMainMenuOpenSource setEnabled: YES];
+ /* if we have a title loaded up */
+ if ([[fMainWindowSrcName stringValue] length] > 0)
+ {
+ [fMainMenuAddToQueue setEnabled: YES];
+ [fMainMenuStartEncode setEnabled: YES];
+ //[fMainMenuPauseEncode setEnabled: YES];
+ [fMenuQueuePanelShow setEnabled: YES];
+ [fMenuPicturePanelShow setEnabled: YES];
+ }
[self Cancel: nil];
}