mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- trying to fix gtsould's work...
This commit is contained in:
parent
a74dc5ee35
commit
708e802570
1 changed files with 3 additions and 12 deletions
15
src/rss.h
15
src/rss.h
|
@ -147,17 +147,8 @@ class RssStream : public QObject{
|
||||||
}
|
}
|
||||||
|
|
||||||
// display the icon in the rss window
|
// display the icon in the rss window
|
||||||
void displayIcon(const QString&, const QString& file_path, int return_code, const QString&) {
|
void displayIcon(const QString&, const QString& file_path) {
|
||||||
iconPath = file_path;
|
iconPath = file_path;
|
||||||
if(return_code){
|
|
||||||
// Download failed
|
|
||||||
if(QFile::exists(iconPath) && iconPath!=":/Icons/rss.png") {
|
|
||||||
QFile::remove(iconPath);
|
|
||||||
}
|
|
||||||
iconPath = ":/Icons/rss.png";
|
|
||||||
emit refreshFinished(url, ICON);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
openIcon();
|
openIcon();
|
||||||
emit refreshFinished(url, ICON);
|
emit refreshFinished(url, ICON);
|
||||||
}
|
}
|
||||||
|
@ -253,7 +244,7 @@ class RssStream : public QObject{
|
||||||
nbnonread++;
|
nbnonread++;
|
||||||
}
|
}
|
||||||
return nbnonread;
|
return nbnonread;
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<RssItem*> getListItem() const{
|
QList<RssItem*> getListItem() const{
|
||||||
return listItem;
|
return listItem;
|
||||||
|
@ -279,7 +270,7 @@ class RssStream : public QObject{
|
||||||
void getIcon() {
|
void getIcon() {
|
||||||
QUrl siteUrl(url);
|
QUrl siteUrl(url);
|
||||||
QString iconUrl = "http://"+siteUrl.host()+"/favicon.ico";
|
QString iconUrl = "http://"+siteUrl.host()+"/favicon.ico";
|
||||||
connect(downloaderIcon, SIGNAL(downloadFinished(const QString&, const QString&, int, const QString&)), this, SLOT(displayIcon(const QString&, const QString&, int, const QString&)));
|
connect(downloaderIcon, SIGNAL(downloadFinished(const QString&, const QString&), this, SLOT(displayIcon(const QString&, const QString&)));
|
||||||
downloaderIcon->downloadUrl(iconUrl);
|
downloaderIcon->downloadUrl(iconUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue