Skip to content

Commit

Permalink
Merge pull request #8679 from phil65/content_pictures
Browse files Browse the repository at this point in the history
[guilib] MyPics: set content to "images" when entering sources
  • Loading branch information
razzeee committed Dec 29, 2015
2 parents 1d1cfcb + 720a184 commit 3843679
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/pictures/GUIWindowPictures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,11 @@ bool CGUIWindowPictures::GetDirectory(const std::string &strDirectory, CFileItem
return false;

std::string label;
if (items.GetLabel().empty() && m_rootDir.IsSource(items.GetPath(), CMediaSourceSettings::GetInstance().GetSources("pictures"), &label))
if (items.GetLabel().empty() && m_rootDir.IsSource(items.GetPath(), CMediaSourceSettings::GetInstance().GetSources("pictures"), &label))
items.SetLabel(label);

if (items.GetContent().empty() && !items.IsVirtualDirectoryRoot())
items.SetContent("images");
return true;
}

Expand Down

0 comments on commit 3843679

Please sign in to comment.