summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorritsuka <[email protected]>2008-07-02 13:34:20 +0000
committerritsuka <[email protected]>2008-07-02 13:34:20 +0000
commitd4d2fc14259eee2216106049c56f633504de58fc (patch)
treee40206c616185e164c9f357ee9cb5da1126b7048
parent9da96ff4400c93e5559204e96552f8d777ac7dda (diff)
MacGui: Fixed a crash when dismissing the open window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1551 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/Controller.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index b899585df..cec1fd19f 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -1160,7 +1160,7 @@ 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)
+ if ([[fSrcDVD2Field stringValue] length] > 0 && SuccessfulScan)
{
[self enableUI: YES];
}
@@ -1276,7 +1276,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
else
{
/* if we have a title loaded up */
- if ([[fSrcDVD2Field stringValue] length] > 0)
+ if ([[fSrcDVD2Field stringValue] length] > 0 && SuccessfulScan)
{
[self enableUI: YES];
}