Pass null as entry to chaptermodel if there is no current track
It previously passed undefined, but that will not be interpreted as nullptr by the underlying C++ model.
This commit is contained in:
parent
906730c516
commit
44c54b664a
@ -279,12 +279,12 @@ Rectangle {
|
|||||||
id: chapterList
|
id: chapterList
|
||||||
model: ChapterModel {
|
model: ChapterModel {
|
||||||
id: chapterModel
|
id: chapterModel
|
||||||
entry: AudioManager.entry ? AudioManager.entry : undefined
|
entry: AudioManager.entry ? AudioManager.entry : null
|
||||||
}
|
}
|
||||||
delegate: ChapterListDelegate {
|
delegate: ChapterListDelegate {
|
||||||
id: chapterDelegate
|
id: chapterDelegate
|
||||||
width: chapterList.width
|
width: chapterList.width
|
||||||
entry: AudioManager.entry
|
entry: AudioManager.entry ? AudioManager.entry : null
|
||||||
overlay: chapterOverlay
|
overlay: chapterOverlay
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -212,13 +212,13 @@ Kirigami.Page {
|
|||||||
id: chapterList
|
id: chapterList
|
||||||
model: ChapterModel {
|
model: ChapterModel {
|
||||||
id: chapterModel
|
id: chapterModel
|
||||||
entry: AudioManager.entry ? AudioManager.entry : undefined
|
entry: AudioManager.entry ? AudioManager.entry : null
|
||||||
}
|
}
|
||||||
clip: true
|
clip: true
|
||||||
visible: chapterList.count !== 0
|
visible: chapterList.count !== 0
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
delegate: ChapterListDelegate {
|
delegate: ChapterListDelegate {
|
||||||
entry: AudioManager.entry
|
entry: AudioManager.entry ? AudioManager.entry : null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user