diff --git a/src/rss.ui b/src/rss.ui
index 4fdeee915..022d6320b 100644
--- a/src/rss.ui
+++ b/src/rss.ui
@@ -225,12 +225,12 @@
- Create
+ Add RSS stream
- RefreshAll
+ Refresh all streams
diff --git a/src/rss_imp.cpp b/src/rss_imp.cpp
index 97781a0a3..9e88feade 100644
--- a/src/rss_imp.cpp
+++ b/src/rss_imp.cpp
@@ -26,16 +26,17 @@
#include
// display a right-click menu
- void RSSImp::displayFinishedListMenu(const QPoint& pos){
+ void RSSImp::displayRSSListMenu(const QPoint& pos){
QMenu myFinishedListMenu(this);
QListWidgetItem* item = listStreams->itemAt(pos);
if(item!=NULL) {
myFinishedListMenu.addAction(actionDelete);
myFinishedListMenu.addAction(actionRename);
myFinishedListMenu.addAction(actionRefresh);
+ }else{
+ myFinishedListMenu.addAction(actionCreate);
+ myFinishedListMenu.addAction(actionRefreshAll);
}
- myFinishedListMenu.addAction(actionCreate);
- myFinishedListMenu.addAction(actionRefreshAll);
myFinishedListMenu.exec(mapToGlobal(pos)+QPoint(10,33));
}
@@ -236,7 +237,7 @@
addStream_button->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/add.png")));
delStream_button->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/remove.png")));
refreshAll_button->setIcon(QIcon(QString::fromUtf8(":/Icons/exec.png")));
- connect(listStreams, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(displayFinishedListMenu(const QPoint&)));
+ connect(listStreams, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(displayRSSListMenu(const QPoint&)));
connect(actionDelete, SIGNAL(triggered()), this, SLOT(deleteStream()));
connect(actionRename, SIGNAL(triggered()), this, SLOT(renameStream()));
connect(actionRefresh, SIGNAL(triggered()), this, SLOT(refreshStream()));
diff --git a/src/rss_imp.h b/src/rss_imp.h
index 7e0d77504..7cae11cc3 100644
--- a/src/rss_imp.h
+++ b/src/rss_imp.h
@@ -41,7 +41,7 @@ class RSSImp : public QWidget, public Ui::RSS{
void on_listStreams_clicked();
void on_listNews_clicked();
void on_listNews_doubleClicked();
- void displayFinishedListMenu(const QPoint&);
+ void displayRSSListMenu(const QPoint&);
void deleteStream();
void renameStream();
void refreshStream();