From 748e5bdf13489b49f93013a975626b3dbcdd254f Mon Sep 17 00:00:00 2001 From: Henk Kalkwater Date: Wed, 27 Apr 2022 11:03:18 +0200 Subject: [PATCH] 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. --- sailfish/qml/harbour-sailfin.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sailfish/qml/harbour-sailfin.qml b/sailfish/qml/harbour-sailfin.qml index 7a69ad3..7425cfc 100644 --- a/sailfish/qml/harbour-sailfin.qml +++ b/sailfish/qml/harbour-sailfin.qml @@ -151,7 +151,7 @@ ApplicationWindow { } function navigateToItem(jellyfinId, mediaType, type, isFolder) { - if (mediaType === "Audio") { + if (mediaType === "Audio" && !isFolder) { playbackManager.playItemId(jellyfinId) } else { pageStack.push(Utils.getPageUrl(mediaType, type, isFolder), {"itemId": jellyfinId});