mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-29 00:30:12 +01:00
fix warning
This commit is contained in:
parent
400c2995a4
commit
dfc28bcd4e
@ -998,13 +998,12 @@ QStringList DatabaseQueries::bagOfMessages(const QSqlDatabase& db, ServiceRoot::
|
||||
QHash<QString, QStringList> DatabaseQueries::bagsOfMessages(const QSqlDatabase& db, const QList<Label*>& labels) {
|
||||
QHash<QString, QStringList> ids;
|
||||
QSqlQuery q(db);
|
||||
QString query;
|
||||
|
||||
q.setForwardOnly(true);
|
||||
|
||||
q.prepare(QSL("SELECT message "
|
||||
"FROM LabelsInMessages "
|
||||
"WHERE label = :label AND account_id = :account_id;").arg(query));
|
||||
"WHERE label = :label AND account_id = :account_id;"));
|
||||
|
||||
for (const Label* lbl :labels) {
|
||||
q.bindValue(QSL(":label"), lbl->customId());
|
||||
|
@ -150,7 +150,7 @@ void GreaderServiceRoot::saveAllCachedData(bool ignore_errors) {
|
||||
}
|
||||
|
||||
if (m_network->service() != Service::TheOldReader) {
|
||||
// The Old Reader does not support labels.
|
||||
// NOTE: The Old Reader does not support labels.
|
||||
QMapIterator<QString, QStringList> k(msg_cache.m_cachedLabelAssignments);
|
||||
|
||||
// Assign label for these messages.
|
||||
|
Loading…
x
Reference in New Issue
Block a user