mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Fix crash when hiding RSS and then showing it again
This commit is contained in:
parent
ad087d7e88
commit
e11545c8a3
5 changed files with 11 additions and 9 deletions
|
@ -307,9 +307,9 @@ void RSSImp::downloadTorrent() {
|
|||
foreach(const QTreeWidgetItem* item, selected_items) {
|
||||
RssArticle* article = listStreams->getRSSItemFromUrl(item->text(NEWS_URL_COL))->getItem(item->text(NEWS_ID));
|
||||
if(article->has_attachment()) {
|
||||
BTSession->downloadFromUrl(article->getTorrentUrl());
|
||||
QBtSession::instance()->downloadFromUrl(article->getTorrentUrl());
|
||||
} else {
|
||||
BTSession->downloadFromUrl(article->getLink());
|
||||
QBtSession::instance()->downloadFromUrl(article->getLink());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -577,7 +577,7 @@ void RSSImp::updateRefreshInterval(unsigned int val) {
|
|||
rssmanager->updateRefreshInterval(val);
|
||||
}
|
||||
|
||||
RSSImp::RSSImp(QBtSession *BTSession) : QWidget(), BTSession(BTSession){
|
||||
RSSImp::RSSImp(QWidget *parent) : QWidget(parent) {
|
||||
setupUi(this);
|
||||
|
||||
rssmanager = RssManager::instance();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue