aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2015-07-01 19:31:04 +0200
committerMartijn Kaijser <martijn@xbmc.org>2015-07-01 19:31:04 +0200
commitf05aaf71ce55c75dfca3cafc66efa08ac68fe731 (patch)
treec4119d67040e3a1b58c3165b64d97aa78e4baa45
parent3af971cda19e9cf027b1dc26430faaceb3e8d555 (diff)
parentc8b73633680ffee3de47b622252a8e35133a22b5 (diff)
Merge pull request #7375 from mkortstiege/fav-fix-pictures
[favourites] handle pictures via showpicture builtin
-rw-r--r--xbmc/filesystem/FavouritesDirectory.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/filesystem/FavouritesDirectory.cpp b/xbmc/filesystem/FavouritesDirectory.cpp
index 2cf9feff9a..f24c12e915 100644
--- a/xbmc/filesystem/FavouritesDirectory.cpp
+++ b/xbmc/filesystem/FavouritesDirectory.cpp
@@ -201,6 +201,8 @@ std::string CFavouritesDirectory::GetExecutePath(const CFileItem &item, const st
execute = StringUtils::Format("PlayMedia(%s)", StringUtils::Paramify(item.GetVideoInfoTag()->m_strFileNameAndPath).c_str());
else if (item.IsMusicDb() && item.HasMusicInfoTag())
execute = StringUtils::Format("PlayMedia(%s)", StringUtils::Paramify(item.GetMusicInfoTag()->GetURL()).c_str());
+ else if (item.IsPicture())
+ execute = StringUtils::Format("ShowPicture(%s)", StringUtils::Paramify(item.GetPath()).c_str());
else
execute = StringUtils::Format("PlayMedia(%s)", StringUtils::Paramify(item.GetPath()).c_str());
}