Commit f3aa6fb0 authored by Felix Paul Kühne's avatar Felix Paul Kühne

iOS dialog provider: prevent runtime exception on tvOS

parent 1125247b
......@@ -387,7 +387,8 @@ bool checkProgressPanel (void *priv)
message:dialog[@"message"]
preferredStyle:UIAlertControllerStyleAlert];
[alertController addAction:[UIAlertAction actionWithTitle:dialog[@"cancel"]
NSString *cancelTitle = dialog[@"cancel"];
[alertController addAction:[UIAlertAction actionWithTitle:cancelTitle != nil ? cancelTitle : NSLocalizedString(@"Cancel", nil)
style:UIAlertActionStyleDestructive
handler:^(UIAlertAction * _Nonnull action) {
ret = 3;
......
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