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,22 +304,31 @@ ...@@ -304,22 +304,31 @@
-(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 )
{
if(![o_prog_win isVisible])
{ {
[NSApp endSheet: o_prog_win]; [NSApp endSheet: o_prog_win];
[o_prog_win close]; [o_prog_win close];
} }
}
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])
{ {
[NSApp endSheet: o_auth_win]; [NSApp endSheet: o_auth_win];
[o_auth_win close]; [o_auth_win close];
} }
}
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])
{ {
[NSApp endSheet: o_input_win]; [NSApp endSheet: o_input_win];
[o_input_win close]; [o_input_win close];
} }
}
if( p_dialog->i_flags & DIALOG_INTF_PROGRESS ) if( p_dialog->i_flags & DIALOG_INTF_PROGRESS )
{ {
[o_mainIntfPgbar setIndeterminate: YES]; [o_mainIntfPgbar setIndeterminate: YES];
......
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