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

fix logic error which prevented the Open URL UI to behave correctly if the pasteboard is empty

parent af2b1036
......@@ -88,11 +88,10 @@
pasteURL = [NSURL URLWithString:pasteString];
}
if (pasteURL && ![[pasteURL scheme] isEqualToString:@""] && ![[pasteURL absoluteString] isEqualToString:@""]) {
if (pasteURL && ![[pasteURL scheme] isEqualToString:@""] && ![[pasteURL absoluteString] isEqualToString:@""])
self.openURLField.text = [pasteURL absoluteString];
}
[self.openNetworkStreamButton addSubview:self.openURLView];
}
[self.openNetworkStreamButton addSubview:self.openURLView];
} else {
VLCAppDelegate* appDelegate = [UIApplication sharedApplication].delegate;
[appDelegate.playlistViewController openMovieFromURL:[NSURL URLWithString:self.openURLField.text]];
......
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