This commit is contained in:
Tobias Fella 2020-03-08 20:56:36 +00:00
parent e1d0eb38da
commit 8df9f56c48

View File

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