Skip to content
Snippets Groups Projects
Commit d8c4fe0b authored by Claudio Cambra's avatar Claudio Cambra Committed by Steve Lhomme
Browse files

macosx: Ensure that errorPanel is instantiated when returning from property in...

macosx: Ensure that errorPanel is instantiated when returning from property in VLCCoreDialogProvider

Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent e4fef615
No related branches found
No related tags found
1 merge request!3927macosx: Fix errors and warnings dialog not opening
Pipeline #364394 passed with stage
in 20 minutes and 54 seconds
......@@ -31,6 +31,9 @@
#import <vlc_dialog.h>
@interface VLCCoreDialogProvider ()
{
VLCErrorWindowController *_errorPanel;
}
- (void)displayErrorWithTitle:(NSString *)title
text:(NSString *)text;
......@@ -359,6 +362,15 @@ static void updateProgressCallback(void *p_data,
}
}
- (VLCErrorWindowController *)errorPanel
{
if (!_errorPanel) {
_errorPanel = [[VLCErrorWindowController alloc] init];
}
return _errorPanel;
}
- (IBAction)progressDialogAction:(id)sender
{
[NSApp stopModalWithCode: -1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment