diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-04-08 21:25:16 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-04-08 21:25:16 +0200 |
commit | c0bed8e4144232c59107970184be58a2435c7bdc (patch) | |
tree | a603b608206a563fe74673f84fede43e6b837174 /src/core/web_contents_adapter.cpp | |
parent | 19dfb1a5c1878f996a8427addb61af39673c0f8b (diff) | |
parent | 12ac4dd0d8d7e5fa33043d86e2effa77183f3122 (diff) |
Merge remote-tracking branch 'origin/5.5' into dev
Change-Id: I7b0dae978357c6f48826ad8e09a8cb8477d1901d
Diffstat (limited to 'src/core/web_contents_adapter.cpp')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 7 |
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 |