mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-02-06 04:14:22 +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> DatabaseQueries::bagsOfMessages(const QSqlDatabase& db, const QList<Label*>& labels) {
|
||||||
QHash<QString, QStringList> ids;
|
QHash<QString, QStringList> ids;
|
||||||
QSqlQuery q(db);
|
QSqlQuery q(db);
|
||||||
QString query;
|
|
||||||
|
|
||||||
q.setForwardOnly(true);
|
q.setForwardOnly(true);
|
||||||
|
|
||||||
q.prepare(QSL("SELECT message "
|
q.prepare(QSL("SELECT message "
|
||||||
"FROM LabelsInMessages "
|
"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) {
|
for (const Label* lbl :labels) {
|
||||||
q.bindValue(QSL(":label"), lbl->customId());
|
q.bindValue(QSL(":label"), lbl->customId());
|
||||||
|
@ -150,7 +150,7 @@ void GreaderServiceRoot::saveAllCachedData(bool ignore_errors) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_network->service() != Service::TheOldReader) {
|
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);
|
QMapIterator<QString, QStringList> k(msg_cache.m_cachedLabelAssignments);
|
||||||
|
|
||||||
// Assign label for these messages.
|
// Assign label for these messages.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user