From 7dd5e5067e1997bd69b2f4ebed7dd6d7c2eabf1a Mon Sep 17 00:00:00 2001 From: Flavio Date: Thu, 10 Jan 2013 14:25:03 +0100 Subject: [PATCH] Empty cache Related videos action enable/disable --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ba507cf..904ebbb 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -841,7 +841,6 @@ void MainWindow::showWidget(QWidget* widget, bool transition) { copyPageAct->setEnabled(isMediaView); copyLinkAct->setEnabled(isMediaView); findVideoPartsAct->setEnabled(isMediaView); - The::globalActions()->value("related-videos")->setEnabled(isMediaView); toolbarSearch->setEnabled(widget == homeView || isMediaView || widget == downloadView); if (widget == homeView) { @@ -1346,6 +1345,8 @@ void MainWindow::clearRecentKeywords() { searchView->updateRecentKeywords(); searchView->updateRecentChannels(); } + QAbstractNetworkCache *cache = The::networkAccessManager()->cache(); + if (cache) cache->clear(); showMessage(tr("Your privacy is now safe")); } -- 2.39.5