1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Do not call loadRequest on an invalid URL

I expected that error to be handled gracefully. It's actually not, it
crashes the whole browser, and saves a state that will make it crash
again on startup. So just ignore invalid URLs if searchFromAddressBar is
set to false.
This commit is contained in:
Kevin Kofler 2016-01-14 05:03:13 +01:00
parent fcae1fd3f5
commit a570beb667

View File

@ -192,11 +192,7 @@ void WebView::load(const LoadRequest &request)
if (qzSettings->searchFromAddressBar) {
const LoadRequest searchRequest = mApp->searchEnginesManager()->searchResult(request.urlString());
loadRequest(searchRequest);
return;
}
// This will produce an error, but the user requested so by disabling "search from address bar"
loadRequest(request);
}
bool WebView::isLoading() const