Commit ddf73ca0 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

gui/macosx/interaction.m: Don't destroy twice the window.

parent 3ab81753
...@@ -304,21 +304,30 @@ ...@@ -304,21 +304,30 @@
-(void)hideDialog -(void)hideDialog
{ {
msg_Dbg( p_intf, "hide event" ); msg_Dbg( p_intf, "hide event %p", self );
if( p_dialog->i_flags & DIALOG_USER_PROGRESS ) if( p_dialog->i_flags & DIALOG_USER_PROGRESS )
{ {
[NSApp endSheet: o_prog_win]; if(![o_prog_win isVisible])
[o_prog_win close]; {
[NSApp endSheet: o_prog_win];
[o_prog_win close];
}
} }
if( p_dialog->i_flags & DIALOG_LOGIN_PW_OK_CANCEL ) if( p_dialog->i_flags & DIALOG_LOGIN_PW_OK_CANCEL )
{ {
[NSApp endSheet: o_auth_win]; if(![o_auth_win isVisible])
[o_auth_win close]; {
[NSApp endSheet: o_auth_win];
[o_auth_win close];
}
} }
if( p_dialog->i_flags & DIALOG_PSZ_INPUT_OK_CANCEL ) if( p_dialog->i_flags & DIALOG_PSZ_INPUT_OK_CANCEL )
{ {
[NSApp endSheet: o_input_win]; if(![o_input_win isVisible])
[o_input_win close]; {
[NSApp endSheet: o_input_win];
[o_input_win close];
}
} }
if( p_dialog->i_flags & DIALOG_INTF_PROGRESS ) if( p_dialog->i_flags & DIALOG_INTF_PROGRESS )
{ {
......
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