1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Don't try to download empty page.

Closes #925
This commit is contained in:
nowrep 2013-06-06 11:48:43 +02:00
parent de10968498
commit b59d42fc1b

View File

@ -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('.'))) {