Commit c0552eff authored by Stefano Crocco's avatar Stefano Crocco Committed by David Faure
Browse files

Attempt to avoid displaying empty tabs when opening a remote file

parent 0034d3a5
......@@ -566,7 +566,7 @@ void KonqMainWindow::openUrl(KonqView *_view, const QUrl &_url,
// I removed this entire block so that we wouldn't end up with a useless tab when
// launching an external application for this mimetype. But user feedback
// in all cases is more important than empty tabs in some cases.
if (!loader->isReady() || loader->viewToUse() == UrlLoader::ViewToUse::NewTab) {
if (loader->viewToUse() == UrlLoader::ViewToUse::NewTab) {
view = createTabForLoadUrlRequest(loader->url(), loader->request());
if (!view) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment