mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-04 09:42:45 +00:00
Sailfish: do not crash when opening an audio folders
The QML side attempted to simply pass all items of type 'Audio' to the PlaybackManager.playItem(). This does not work for folders and it will crash. This does not fix the presentation of audio folders/playlists, but it does fix the crash.
This commit is contained in:
parent
cab5f20469
commit
748e5bdf13
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
function navigateToItem(jellyfinId, mediaType, type, isFolder) {
|
function navigateToItem(jellyfinId, mediaType, type, isFolder) {
|
||||||
if (mediaType === "Audio") {
|
if (mediaType === "Audio" && !isFolder) {
|
||||||
playbackManager.playItemId(jellyfinId)
|
playbackManager.playItemId(jellyfinId)
|
||||||
} else {
|
} else {
|
||||||
pageStack.push(Utils.getPageUrl(mediaType, type, isFolder), {"itemId": jellyfinId});
|
pageStack.push(Utils.getPageUrl(mediaType, type, isFolder), {"itemId": jellyfinId});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue