Skip to content

Commit

Permalink
Merge pull request xbmc#1143 from bossanova808/master
Browse files Browse the repository at this point in the history
[Fix] For inconsistent 'play from here' context menu behaviour....
  • Loading branch information
jmarshallnz committed Jul 11, 2012
2 parents eb76c09 + 06e389d commit a85cf75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/video/windows/GUIWindowVideoBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,9 @@ void CGUIWindowVideoBase::GetContextButtons(int itemNumber, CContextButtons &but
{
buttons.Add(CONTEXT_BUTTON_RESUME_ITEM, GetResumeString(*(item.get()))); // Resume Video
}
if (item->HasVideoInfoTag() && !item->m_bIsFolder && m_vecItems->Size() > 1 && itemNumber < m_vecItems->Size()-1)
//if the item isn't a folder, is a member of a list rather than a single item
//and we're not on the last element of the list, then add the 'play from here' option
if (!item->m_bIsFolder && m_vecItems->Size() > 1 && itemNumber < m_vecItems->Size()-1)
{
buttons.Add(CONTEXT_BUTTON_PLAY_AND_QUEUE, 13412);
}
Expand Down

0 comments on commit a85cf75

Please sign in to comment.