// If we can't open it, then prompt the user to save it.
if (!QDesktopServices.openUrl(url)) {
logger.log(logger.EXTREME, "We can't handle this. Where do we put it?");
QFileDialog dialog = new QFileDialog();
dialog.show();
if (dialog.exec()!=0) {
List<String> fileNames = dialog.selectedFiles(); //gets all selected filenames
if (fileNames.size() == 0)
return;
String sf = fileNames.get(0);