]> git.sur5r.net Git - minitube/commitdiff
Clear recent searches
authorFlavio <flavio@odisseo.local>
Mon, 31 Jan 2011 13:21:04 +0000 (14:21 +0100)
committerFlavio <flavio@odisseo.local>
Mon, 31 Jan 2011 13:21:04 +0000 (14:21 +0100)
src/MainWindow.cpp

index 2064ce929de21cfa2b3f0c3dafefea528533539c..aa45d4fbc56c4a07cf4f5b420ff17b06d983d5ce 100644 (file)
@@ -184,7 +184,7 @@ void MainWindow::createActions() {
     actions->insert("moveDown", moveDownAct);
     connect(moveDownAct, SIGNAL(triggered()), mediaView, SLOT(moveDownSelected()));
 
-    clearAct = new QAction(tr("&Clear recent keywords"), this);
+    clearAct = new QAction(tr("&Clear recent searches"), this);
     clearAct->setMenuRole(QAction::ApplicationSpecificRole);
     clearAct->setShortcuts(QList<QKeySequence>()
                            << QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_Delete)
@@ -938,7 +938,9 @@ void MainWindow::showFullscreenPlaylist(bool show) {
 void MainWindow::clearRecentKeywords() {
     QSettings settings;
     settings.remove("recentKeywords");
+    settings.remove("recentChannels");
     searchView->updateRecentKeywords();
+    searchView->updateRecentChannels();
     statusBar()->showMessage(tr("Your privacy is now safe"));
 }