Browse Source

rss : bug fixes

adaptive-webui-19844
Arnaud Demaiziere 18 years ago
parent
commit
85fa92ca12
  1. 10
      src/rss_imp.cpp

10
src/rss_imp.cpp

@ -52,12 +52,17 @@ @@ -52,12 +52,17 @@
qDebug("no stream selected");
return;
}else {
int ok = QMessageBox::question(this, tr("Are you sure? -- qBittorrent"), tr("Are you sure you want to delete this stream from the list ?"),
tr("&Yes"), tr("&No"),
QString(), 0, 1);
if(ok==0) {
textBrowser->clear();
listNews->clear();
rssmanager.removeStream(rssmanager.getStream(getNumStreamSelected()));
refreshStreamList();
}
}
}
// refresh all streams by a button
void RSSImp::on_refreshAll_button_clicked() {
@ -108,6 +113,8 @@ @@ -108,6 +113,8 @@
qDebug("no stream selected");
return;
}else {
int ok = QMessageBox::question(this, tr("Are you sure? -- qBittorrent"), tr("Are you sure you want to delete this stream from the list ?"), tr("&Yes"), tr("&No"), QString(), 0, 1);
if(ok==0) {
moveCurrentItem();
textBrowser->clear();
listNews->clear();
@ -115,6 +122,7 @@ @@ -115,6 +122,7 @@
refreshStreamList();
}
}
}
//right-clik on stream : give him an alias
void RSSImp::renameStream() {
@ -271,7 +279,7 @@ @@ -271,7 +279,7 @@
// icons of bottom buttons
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")));
refreshAll_button->setIcon(QIcon(QString::fromUtf8(":/Icons/refresh.png")));
// icons of right-click menu
actionDelete->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/remove.png")));
actionRename->setIcon(QIcon(QString::fromUtf8(":/Icons/log.png")));

Loading…
Cancel
Save