mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
Fix color loading for labels.
This commit is contained in:
parent
4deec13cff
commit
dc992edb55
@ -952,7 +952,9 @@ void DBHelper::insertComicsInFavorites(const QList<ComicDB> &comicsList, QSqlDat
|
||||
query.bindValue(":ordering", numComics++);
|
||||
query.exec();
|
||||
}
|
||||
|
||||
|
||||
QLOG_TRACE() << query.lastError();
|
||||
|
||||
db.commit();
|
||||
}
|
||||
|
||||
@ -976,7 +978,9 @@ void DBHelper::insertComicsInLabel(const QList<ComicDB> &comicsList, qulonglong
|
||||
query.bindValue(":ordering", numComics++);
|
||||
query.exec();
|
||||
}
|
||||
|
||||
|
||||
QLOG_TRACE() << query.lastError();
|
||||
|
||||
db.commit();
|
||||
}
|
||||
|
||||
@ -1272,7 +1276,7 @@ QList<Label> DBHelper::getLabels(qulonglong libraryId)
|
||||
{
|
||||
Label item(selectQuery.value(name).toString(),
|
||||
selectQuery.value(id).toLongLong(),
|
||||
static_cast<YACReader::LabelColors>(selectQuery.value(color).toInt()));
|
||||
static_cast<YACReader::LabelColors>(selectQuery.value(ordering).toInt()));
|
||||
|
||||
if(labels.isEmpty())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user