diff --git a/src/lib/webview/webview.cpp b/src/lib/webview/webview.cpp index 157f403fa..728461c88 100644 --- a/src/lib/webview/webview.cpp +++ b/src/lib/webview/webview.cpp @@ -501,6 +501,10 @@ void WebView::copyLinkToClipboard() void WebView::savePageAs() { + if (url().isEmpty() || url().toString() == QLatin1String("about:blank")) { + return; + } + QNetworkRequest request(url()); QString suggestedFileName = QzTools::getFileNameFromUrl(url()); if (!suggestedFileName.contains(QLatin1Char('.'))) {