From 86d38efcb2a3244e273735b4fe2781c10cc74a17 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 3 Aug 2007 15:02:16 +0000 Subject: [PATCH] - Allow to delete rss streams using "Del" key --- TODO | 2 +- src/GUI.cpp | 6 +++++- src/rss_imp.h | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 898674c5b..047602b3c 100644 --- a/TODO +++ b/TODO @@ -47,8 +47,8 @@ - make use of finishedChecking alert if hydri implements it - Clean up delayed progress column sorting code - Clean up pause after checking code - - add delete hotkey for rss feeds - Test rss now that it has been rewritten + - Refresh rss feeds periodically - Wait for some bug fixes in libtorrent : - upload/download limit per torrent (Ticket #83) - double free or corruption on exit (Ticket #84) diff --git a/src/GUI.cpp b/src/GUI.cpp index 794eb3b87..b65c981cf 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1048,7 +1048,11 @@ void GUI::on_actionDelete_Permanently_triggered(){ // delete selected items in the list void GUI::on_actionDelete_triggered(){ - if(tabs->currentIndex() > 1) return; + if(tabs->currentIndex() == 2) return; // No deletion in search tab + if(tabs->currentIndex() == 3){ + rssWidget->on_delStream_button_clicked(); + return; + } QModelIndexList selectedIndexes; bool inDownloadList; if(tabs->currentIndex() == 0) { diff --git a/src/rss_imp.h b/src/rss_imp.h index dff1d6bc6..3cc6854af 100644 --- a/src/rss_imp.h +++ b/src/rss_imp.h @@ -36,9 +36,11 @@ class RSSImp : public QWidget, public Ui::RSS{ QTimer *refreshTimeTimer; QString selectedFeedUrl; + public slots: + void on_delStream_button_clicked(); + protected slots: void on_addStream_button_clicked(); - void on_delStream_button_clicked(); void on_refreshAll_button_clicked(); void displayRSSListMenu(const QPoint&); void renameStream();