Commit b8afd4d6 authored by David Fuhrmann's avatar David Fuhrmann

macosx: Handle abort of login window correctly

parent 6aac090f
......@@ -221,8 +221,10 @@ static void updateProgressCallback(void *p_data,
NSString *username = authenticationLoginTextField.stringValue;
NSString *password = authenticationPasswordTextField.stringValue;
vlc_dialog_id_post_login([dialogData[0] pointerValue],
if (returnValue == 0)
vlc_dialog_id_dismiss([dialogData[0] pointerValue]);
else
vlc_dialog_id_post_login([dialogData[0] pointerValue],
username ? [username UTF8String] : NULL,
password ? [password UTF8String] : NULL,
authenticationStorePasswordCheckbox.state == NSOnState);
......
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