Commit 2e90ee50 authored by Felix Paul Kühne's avatar Felix Paul Kühne

fix runtime exceptions

parent 63a8b0e0
......@@ -274,7 +274,7 @@
delegate:self
cancelButtonTitle:NSLocalizedString(@"BUTTON_CANCEL", nil)
otherButtonTitles:nil];
[alert show];
[alert performSelectorOnMainThread:@selector(show) withObject:nil waitUntilDone:NO];
}
- (void)progressUpdatedTo:(CGFloat)percentage receivedDataSize:(CGFloat)receivedDataSize expectedDownloadSize:(CGFloat)expectedDownloadSize
......@@ -348,12 +348,12 @@
_FTPDownloadRequest = nil;
[self downloadEnded];
VLCAlertView * alert = [[VLCAlertView alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedString(@"ERROR_NUMBER", nil), request.error.errorCode]
VLCAlertView *alert = [[VLCAlertView alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedString(@"ERROR_NUMBER", nil), request.error.errorCode]
message:request.error.message
delegate:self
cancelButtonTitle:NSLocalizedString(@"BUTTON_CANCEL", nil)
otherButtonTitles:nil];
[alert show];
[alert performSelectorOnMainThread:@selector(show) withObject:nil waitUntilDone:NO];
}
#pragma mark - table view data source
......
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