mirror of https://github.com/KDE/kasts.git
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
|
||||
model: ChapterModel {
|
||||
id: chapterModel
|
||||
entry: AudioManager.entry ? AudioManager.entry : undefined
|
||||
entry: AudioManager.entry ? AudioManager.entry : null
|
||||
}
|
||||
delegate: ChapterListDelegate {
|
||||
id: chapterDelegate
|
||||
width: chapterList.width
|
||||
entry: AudioManager.entry
|
||||
entry: AudioManager.entry ? AudioManager.entry : null
|
||||
overlay: chapterOverlay
|
||||
}
|
||||
}
|
||||
|
|
|
@ -212,13 +212,13 @@ Kirigami.Page {
|
|||
id: chapterList
|
||||
model: ChapterModel {
|
||||
id: chapterModel
|
||||
entry: AudioManager.entry ? AudioManager.entry : undefined
|
||||
entry: AudioManager.entry ? AudioManager.entry : null
|
||||
}
|
||||
clip: true
|
||||
visible: chapterList.count !== 0
|
||||
anchors.fill: parent
|
||||
delegate: ChapterListDelegate {
|
||||
entry: AudioManager.entry
|
||||
entry: AudioManager.entry ? AudioManager.entry : null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue