Skip to content
Browse files

Set URL to about:blank on WebPage initialization

  • Loading branch information...
1 parent 67b8a33 commit f20d32df103ce6bff4b3ee8691a5c263e5a63450 @mhoran mhoran committed Oct 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −0 src/WebPage.cpp
  2. +0 −1 src/WebPageManager.cpp
View
1 src/WebPage.cpp
@@ -33,6 +33,7 @@ WebPage::WebPage(WebPageManager *manager, QObject *parent) : QWebPage(parent) {
resetWindowSize();
settings()->setAttribute(QWebSettings::JavascriptCanOpenWindows, true);
+ currentFrame()->setUrl(QUrl("about:blank"));
}
void WebPage::resetWindowSize() {
View
1 src/WebPageManager.cpp
@@ -100,7 +100,6 @@ void WebPageManager::reset() {
m_pages.first()->deleteLater();
m_pages.clear();
createPage(this)->setFocus();
- currentPage()->currentFrame()->setUrl(QUrl("about:blank"));
}
NetworkCookieJar *WebPageManager::cookieJar() {

0 comments on commit f20d32d

Please sign in to comment.
Something went wrong with that request. Please try again.