mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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:
parent
fcae1fd3f5
commit
a570beb667
@ -192,11 +192,7 @@ void WebView::load(const LoadRequest &request)
|
|||||||
if (qzSettings->searchFromAddressBar) {
|
if (qzSettings->searchFromAddressBar) {
|
||||||
const LoadRequest searchRequest = mApp->searchEnginesManager()->searchResult(request.urlString());
|
const LoadRequest searchRequest = mApp->searchEnginesManager()->searchResult(request.urlString());
|
||||||
loadRequest(searchRequest);
|
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
|
bool WebView::isLoading() const
|
||||||
|
Loading…
Reference in New Issue
Block a user