mirror of
https://github.com/KDE/kasts.git
synced 2025-01-23 13:50:44 +01:00
Fix segfault when loading Feeds
This commit is contained in:
parent
c393955c10
commit
745c742172
@ -22,7 +22,7 @@ FeedListModel::FeedListModel(QObject *parent)
|
||||
endInsertRows();
|
||||
});
|
||||
connect(&Fetcher::instance(), &Fetcher::feedDetailsUpdated, this, [this](QString url, QString name, QString image, QString link, QString description, QDateTime lastUpdated) {
|
||||
for (int i = rowCount(QModelIndex()) - 1; i >= 0; i--) {
|
||||
for (int i = 0; i < m_feeds.length(); i++) {
|
||||
if (m_feeds[i]->url() == url) {
|
||||
m_feeds[i]->setName(name);
|
||||
m_feeds[i]->setImage(image);
|
||||
|
Loading…
Reference in New Issue
Block a user