From b59d42fc1bc829a7b043466045421b158ee5eedf Mon Sep 17 00:00:00 2001 From: nowrep Date: Thu, 6 Jun 2013 11:48:43 +0200 Subject: [PATCH] Don't try to download empty page. Closes #925 --- src/lib/webview/webview.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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('.'))) {