Browse Source

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

pull/2/head
Pierre d'Herbemont 19 years ago
parent
commit
ddf73ca019
  1. 23
      modules/gui/macosx/interaction.m

23
modules/gui/macosx/interaction.m

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

Loading…
Cancel
Save