replaced QString output of uniqueIdentifier() in feedItem classes by a std::string because QString caused random crashes

This commit is contained in:
csoler 2019-12-15 16:46:22 +01:00
parent da6e7f9e9b
commit 11c520d280
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
21 changed files with 27 additions and 25 deletions

View file

@ -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

View file

@ -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);