Permalink
Browse files

[favourites] handle pictures via showpicture builtin

  • Loading branch information...
mkortstiege authored and popcornmix committed Jul 1, 2015
1 parent bc7316f commit 7ff3f3020138de7a477b26dd9359809f09e54df5
Showing with 2 additions and 0 deletions.
  1. +2 −0 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());
}

0 comments on commit 7ff3f30

Please sign in to comment.