Make sure chapter marks show up in the correct order
This commit is contained in:
parent
b77c3b46af
commit
52f90157ca
@ -91,7 +91,7 @@ void ChapterModel::load()
|
|||||||
void ChapterModel::loadFromDatabase()
|
void ChapterModel::loadFromDatabase()
|
||||||
{
|
{
|
||||||
QSqlQuery query;
|
QSqlQuery query;
|
||||||
query.prepare(QStringLiteral("SELECT * FROM Chapters WHERE id=:id"));
|
query.prepare(QStringLiteral("SELECT * FROM Chapters WHERE id=:id ORDER BY start ASC;"));
|
||||||
query.bindValue(QStringLiteral(":id"), enclosureId());
|
query.bindValue(QStringLiteral(":id"), enclosureId());
|
||||||
Database::instance().execute(query);
|
Database::instance().execute(query);
|
||||||
while (query.next()) {
|
while (query.next()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user