Fix compiler warnings

This commit is contained in:
Bart De Vries 2021-04-22 10:53:02 +02:00
parent a50c8bf001
commit 28d6f7f525
2 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,7 @@ DataManager::DataManager()
Database::instance().execute(query);
while (query.next()) {
m_feedmap += query.value(QStringLiteral("url")).toString();
m_feeds[query.value(QStringLiteral("url")).toString()] == nullptr;
m_feeds[query.value(QStringLiteral("url")).toString()] = nullptr;
}
//qDebug() << m_feedmap;

View File

@ -15,6 +15,7 @@ EpisodeModel::EpisodeModel()
// cannot know where the new entries will be inserted into the list (or that
// maybe even items have been removed.
connect(&DataManager::instance(), &DataManager::feedEntriesUpdated, this, [this](const QString &url) {
Q_UNUSED(url)
// we have to reset the entire model in case entries are removed or added
// because we have no way of knowing where those entries will be added/removed
beginResetModel();