[vlc-commits] macosx: Handle abort of login window correctly
David Fuhrmann
git at videolan.org
Sat Dec 3 16:25:48 CET 2016
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Dec 3 16:26:46 2016 +0100| [b8afd4d6e7b6bf54444b410319192ee872953c49] | committer: David Fuhrmann
macosx: Handle abort of login window correctly
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b8afd4d6e7b6bf54444b410319192ee872953c49
---
modules/gui/macosx/VLCCoreDialogProvider.m | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/VLCCoreDialogProvider.m b/modules/gui/macosx/VLCCoreDialogProvider.m
index 86f8532..dbbe04f 100644
--- a/modules/gui/macosx/VLCCoreDialogProvider.m
+++ b/modules/gui/macosx/VLCCoreDialogProvider.m
@@ -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);
More information about the vlc-commits
mailing list