Commit fb388c46 authored by Rafaël Carré's avatar Rafaël Carré

Fix ddf73ca0 : the window were never destroyed

parent 4ca10a40
...@@ -307,7 +307,7 @@ ...@@ -307,7 +307,7 @@
msg_Dbg( p_intf, "hide event %p", self ); msg_Dbg( p_intf, "hide event %p", self );
if( p_dialog->i_flags & DIALOG_USER_PROGRESS ) if( p_dialog->i_flags & DIALOG_USER_PROGRESS )
{ {
if(![o_prog_win isVisible]) if([o_prog_win isVisible])
{ {
[NSApp endSheet: o_prog_win]; [NSApp endSheet: o_prog_win];
[o_prog_win close]; [o_prog_win close];
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
} }
if( p_dialog->i_flags & DIALOG_LOGIN_PW_OK_CANCEL ) 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]; [NSApp endSheet: o_auth_win];
[o_auth_win close]; [o_auth_win close];
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
} }
if( p_dialog->i_flags & DIALOG_PSZ_INPUT_OK_CANCEL ) 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]; [NSApp endSheet: o_input_win];
[o_input_win close]; [o_input_win close];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment