aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <3226626+ksooo@users.noreply.github.com>2024-02-28 08:42:31 +0100
committerGitHub <noreply@github.com>2024-02-28 08:42:31 +0100
commite625f24a0b207741d1d45d6c78c45afe7901a84b (patch)
tree70ea82476b5a4c13734b8c391448e167daeb3d80
parent213cb317db5687479e5cf1b4b5058082a6ddadb1 (diff)
parent331e80d16aad6701941cbe59a1ffaa09b8e76597 (diff)
Merge pull request #24753 from ksooo/video-versions-fix-listitem-label
[guiinfo] Fix LISTITEM_LABEL for movies with multiple versions only …
-rw-r--r--xbmc/guilib/guiinfo/VideoGUIInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/guilib/guiinfo/VideoGUIInfo.cpp b/xbmc/guilib/guiinfo/VideoGUIInfo.cpp
index 29e387fd57..3c2e32a279 100644
--- a/xbmc/guilib/guiinfo/VideoGUIInfo.cpp
+++ b/xbmc/guilib/guiinfo/VideoGUIInfo.cpp
@@ -533,6 +533,9 @@ bool CVideoGUIInfo::GetLabel(std::string& value, const CFileItem *item, int cont
// special casing for "show videos with multiple versions as folders", where the label
// should be the video version, not the movie title.
+ if (!item->HasVideoVersions())
+ break;
+
CGUIWindow* videoNav{
CServiceBroker::GetGUI()->GetWindowManager().GetWindow(WINDOW_VIDEO_NAV)};
if (videoNav && videoNav->GetProperty("VideoVersionsFolderView").asBoolean() &&