OSDN Git Service

MacGui: Fixed a crash when dismissing the open window.
authorritsuka <ritsuka@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 2 Jul 2008 13:34:20 +0000 (13:34 +0000)
committerritsuka <ritsuka@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 2 Jul 2008 13:34:20 +0000 (13:34 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1551 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index b899585..cec1fd1 100644 (file)
@@ -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];
         }