mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-29 11:56:37 -05:00
moved to QueuedConnection to update the feed count
This commit is contained in:
parent
93cd6a5df1
commit
856d1b62a7
5 changed files with 21 additions and 25 deletions
|
|
@ -392,9 +392,20 @@ void RSFeedWidget::removeFeedItem(FeedItem *feedItem)
|
|||
|
||||
QTreeWidgetItem *treeItem = findTreeWidgetItem(feedItem);
|
||||
feedRemoved(feedItem);
|
||||
if (treeItem) {
|
||||
|
||||
if (treeItem)
|
||||
{
|
||||
int treeItem_index = ui->treeWidget->indexOfTopLevelItem(treeItem);
|
||||
|
||||
if(treeItem_index < 0)
|
||||
{
|
||||
std::cerr << "(EE) Cannot remove designated item \"" << feedItem->uniqueIdentifier() << "\": not found!" << std::endl;
|
||||
return ;
|
||||
}
|
||||
|
||||
ui->treeWidget->takeTopLevelItem(treeItem_index);
|
||||
delete(treeItem);
|
||||
}
|
||||
}
|
||||
|
||||
if (!mCountChangedDisabled) {
|
||||
emit feedCountChanged();
|
||||
|
|
@ -498,6 +509,9 @@ FeedItem *RSFeedWidget::findFeedItem(const std::string& identifier)
|
|||
|
||||
std::string id = feedItem->uniqueIdentifier();
|
||||
|
||||
std::cerr << "Comparing \"" << id << "\"";
|
||||
std::cerr << " to " << identifier << "\"" << " pthread_t = " << pthread_self() << std::endl;
|
||||
|
||||
if (id == identifier)
|
||||
return feedItem;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue