Fix ddf73ca0199b45de2b8b924a131df3922e5d48b5 : the window were never destroyed
authorRafaël Carré <funman@videolan.org>
Sun, 20 Apr 2008 15:38:33 +0000 (17:38 +0200)
committerRafaël Carré <funman@videolan.org>
Sun, 20 Apr 2008 15:38:33 +0000 (17:38 +0200)
modules/gui/macosx/interaction.m

index aa077f5..5501e58 100644 (file)
     msg_Dbg( p_intf, "hide event %p", self );
     if( p_dialog->i_flags & DIALOG_USER_PROGRESS )
     {
-        if(![o_prog_win isVisible])
+        if([o_prog_win isVisible])
         {
             [NSApp endSheet: o_prog_win];
             [o_prog_win close];
     }
     if( p_dialog->i_flags & DIALOG_LOGIN_PW_OK_CANCEL )
     {
-        if(![o_auth_win isVisible])
+        if([o_auth_win isVisible])
         {
             [NSApp endSheet: o_auth_win];
             [o_auth_win close];
     }
     if( p_dialog->i_flags & DIALOG_PSZ_INPUT_OK_CANCEL )
     {
-        if(![o_input_win isVisible])
+        if([o_input_win isVisible])
         {
             [NSApp endSheet: o_input_win];
             [o_input_win close];