diff --git a/src/feedListModel.cpp b/src/feedListModel.cpp index ce1b9276..e935cfba 100644 --- a/src/feedListModel.cpp +++ b/src/feedListModel.cpp @@ -68,7 +68,7 @@ void FeedListModel::addFeed(QString url) query.prepare(QStringLiteral("SELECT name FROM Feeds WHERE url=:url;")); query.bindValue(QStringLiteral(":url"), url); query.exec(); - query.next() + query.next(); for(int i = 0; i < feeds.length(); i++) { if(feeds[i].url() == url) { feeds.removeAt(i);