mirror of https://github.com/KDE/kasts.git
Fix compiler warnings
This commit is contained in:
parent
a50c8bf001
commit
28d6f7f525
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue