diff --git a/src/entryListModel.cpp b/src/entryListModel.cpp index 59f23a58..f2b0faed 100644 --- a/src/entryListModel.cpp +++ b/src/entryListModel.cpp @@ -42,7 +42,7 @@ QVariant EntryListModel::data(const QModelIndex &index, int role) const { if (role == Updated || role == Created) { QDateTime updated; - updated.setSecsSinceEpoch(QSqlQueryModel::data(createIndex(index.row(), role), 0).toInt()); + updated.setSecsSinceEpoch(QSqlTableModel::data(createIndex(index.row(), role), 0).toInt()); return updated; } return QSqlQueryModel::data(createIndex(index.row(), role), 0); diff --git a/src/feedListModel.cpp b/src/feedListModel.cpp index 339aab45..c38a6a69 100644 --- a/src/feedListModel.cpp +++ b/src/feedListModel.cpp @@ -59,7 +59,7 @@ void FeedListModel::addFeed(QString url) QSqlRecord rec = record(); rec.setValue(0, url); rec.setValue(1, url); - rec.setValue(2, QStringLiteral("")); + rec.setValue(2, QLatin1String("")); insertRecord(-1, rec);