mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-29 11:56:37 -05:00
replaced QString output of uniqueIdentifier() in feedItem classes by a std::string because QString caused random crashes
This commit is contained in:
parent
da6e7f9e9b
commit
11c520d280
21 changed files with 27 additions and 25 deletions
|
|
@ -476,10 +476,10 @@ void RSFeedWidget::withAll(RSFeedWidgetCallbackFunction callback, void *data)
|
|||
}
|
||||
}
|
||||
|
||||
FeedItem *RSFeedWidget::findFeedItem(const QString& identifier)
|
||||
FeedItem *RSFeedWidget::findFeedItem(const std::string& identifier)
|
||||
{
|
||||
QTreeWidgetItemIterator it(ui->treeWidget);
|
||||
QTreeWidgetItem *treeItem;
|
||||
QTreeWidgetItem *treeItem=NULL;
|
||||
|
||||
// this search could probably be automatised by giving the tree items the identifier as data for some specific role, then calling QTreeWidget::findItems()
|
||||
#warning TODO
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ public:
|
|||
bool scrollTo(FeedItem *feedItem, bool focus);
|
||||
|
||||
void withAll(RSFeedWidgetCallbackFunction callback, void *data);
|
||||
FeedItem *findFeedItem(const QString &identifier);
|
||||
FeedItem *findFeedItem(const std::string &identifier);
|
||||
|
||||
void selectedFeedItems(QList<FeedItem*> &feedItems);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue