diff --git a/src/app/mainapplication.cpp b/src/app/mainapplication.cpp index ce94ef08a..63b1fc5d4 100644 --- a/src/app/mainapplication.cpp +++ b/src/app/mainapplication.cpp @@ -356,6 +356,7 @@ void MainApplication::loadSettings() m_websettings->setUserStyleSheetUrl(userStyleSheet); m_websettings->setWebGraphic(QWebSettings::DefaultFrameIconGraphic, IconProvider::fromTheme("text-plain").pixmap(16, 16)); + m_websettings->setWebGraphic(QWebSettings::MissingImageGraphic, QPixmap()); // Allows to load files from qrc: scheme in qupzilla: pages QWebSecurityOrigin::addLocalScheme("qupzilla"); diff --git a/src/app/qupzilla.cpp b/src/app/qupzilla.cpp index 81868f824..674864dfd 100644 --- a/src/app/qupzilla.cpp +++ b/src/app/qupzilla.cpp @@ -1090,6 +1090,7 @@ void QupZilla::loadFolderBookmarks(Menu* menu) void QupZilla::loadAddress(const QUrl &url) { + weView()->setFocus(); weView()->load(url); locationBar()->setText(url.toEncoded()); } diff --git a/src/navigation/locationbar.cpp b/src/navigation/locationbar.cpp index fb940789e..50c0735ac 100644 --- a/src/navigation/locationbar.cpp +++ b/src/navigation/locationbar.cpp @@ -202,7 +202,7 @@ void LocationBar::showUrl(const QUrl &url) QString encodedUrl = url.toEncoded(); - if (url.toString() == "qupzilla:speeddial") { + if (url.toString() == "qupzilla:speeddial" || url.toString() == "about:blank") { encodedUrl = ""; } diff --git a/src/popupwindow/popupwebpage.cpp b/src/popupwindow/popupwebpage.cpp index 698eda3c3..2dec8998b 100644 --- a/src/popupwindow/popupwebpage.cpp +++ b/src/popupwindow/popupwebpage.cpp @@ -48,8 +48,6 @@ PopupWebPage::PopupWebPage(QWebPage::WebWindowType type, QupZilla* mainClass) connect(this, SIGNAL(loadProgress(int)), this, SLOT(slotLoadProgress(int))); connect(this, SIGNAL(loadFinished(bool)), this, SLOT(slotLoadFinished(bool))); - settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, false); - QTimer::singleShot(0, this, SLOT(checkBehaviour())); } diff --git a/src/webview/tabwidget.cpp b/src/webview/tabwidget.cpp index 340595138..f32473f63 100644 --- a/src/webview/tabwidget.cpp +++ b/src/webview/tabwidget.cpp @@ -360,8 +360,9 @@ void TabWidget::closeTab(int index) if (count() == 1) { if (m_dontQuitWithOneTab) { - webView->load(m_urlOnNewTab); + webView->setUrl(m_urlOnNewTab); webPage->history()->clear(); + p_QupZilla->updateLoadingActions(); return; } else {