mirror of https://github.com/KDE/kasts.git
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()
|
||||
{
|
||||
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());
|
||||
Database::instance().execute(query);
|
||||
while (query.next()) {
|
||||
|
|
Loading…
Reference in New Issue