summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_adapter.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-04-08 21:25:16 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2015-04-08 21:25:16 +0200
commitc0bed8e4144232c59107970184be58a2435c7bdc (patch)
treea603b608206a563fe74673f84fede43e6b837174 /src/core/web_contents_adapter.cpp
parent19dfb1a5c1878f996a8427addb61af39673c0f8b (diff)
parent12ac4dd0d8d7e5fa33043d86e2effa77183f3122 (diff)
Merge remote-tracking branch 'origin/5.5' into dev
Diffstat (limited to 'src/core/web_contents_adapter.cpp')
-rw-r--r--src/core/web_contents_adapter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp
index 9f1000910..718003c45 100644
--- a/src/core/web_contents_adapter.cpp
+++ b/src/core/web_contents_adapter.cpp
@@ -440,6 +440,13 @@ void WebContentsAdapter::reload()
d->webContents->Focus();
}
+void WebContentsAdapter::reloadAndBypassCache()
+{
+ Q_D(WebContentsAdapter);
+ d->webContents->GetController().ReloadIgnoringCache(/*checkRepost = */false);
+ d->webContents->Focus();
+}
+
void WebContentsAdapter::load(const QUrl &url)
{
// The situation can occur when relying on the editingFinished signal in QML to set the url