|
|
|
@ -138,6 +138,11 @@ void FeedListWidget::handleItemPathChanged(RSS::Item *rssItem)
@@ -138,6 +138,11 @@ void FeedListWidget::handleItemPathChanged(RSS::Item *rssItem)
|
|
|
|
|
void FeedListWidget::handleItemAboutToBeRemoved(RSS::Item *rssItem) |
|
|
|
|
{ |
|
|
|
|
delete m_rssToTreeItemMapping.take(rssItem); |
|
|
|
|
|
|
|
|
|
// RSS Item is still valid in this slot so if it is the last
|
|
|
|
|
// item we should prevent Unread list populating
|
|
|
|
|
if (m_rssToTreeItemMapping.size() == 1) |
|
|
|
|
setCurrentItem(nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QTreeWidgetItem *FeedListWidget::stickyUnreadItem() const |
|
|
|
@ -164,6 +169,8 @@ QList<QTreeWidgetItem *> FeedListWidget::getAllOpenedFolders(QTreeWidgetItem *pa
@@ -164,6 +169,8 @@ QList<QTreeWidgetItem *> FeedListWidget::getAllOpenedFolders(QTreeWidgetItem *pa
|
|
|
|
|
|
|
|
|
|
RSS::Item *FeedListWidget::getRSSItem(QTreeWidgetItem *item) const |
|
|
|
|
{ |
|
|
|
|
if (!item) return nullptr; |
|
|
|
|
|
|
|
|
|
return reinterpret_cast<RSS::Item *>(item->data(0, Qt::UserRole).value<quintptr>()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|