From: Flavio Date: Thu, 10 Jan 2013 13:25:03 +0000 (+0100) Subject: Empty cache X-Git-Tag: 2.0~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7dd5e5067e1997bd69b2f4ebed7dd6d7c2eabf1a;p=minitube Empty cache Related videos action enable/disable --- 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")); }