]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/widgets/TabWidget.cpp
Add Reload and Bypass Cache. https://redmine.stoutner.com/issues/982
[PrivacyBrowserPC.git] / src / widgets / TabWidget.cpp
index 0a7b3ca1d458ae6d0b97d735545f1fd5bfdcc28c..7ca54342638d460692eb64627a70c401c41869d9 100644 (file)
@@ -828,6 +828,13 @@ void TabWidget::refresh() const
     currentPrivacyWebEngineViewPointer->reload();
 }
 
+void TabWidget::reloadAndBypassCache() const
+{
+    // Reload the website, bypassing the cache.
+    currentWebEnginePagePointer->triggerAction(QWebEnginePage::ReloadAndBypassCache);
+}
+
+
 void TabWidget::setTabBarVisible(const bool visible) const
 {
     // Set the tab bar visibility.