Enable the "Edit track information..." item in the library context menu when right-clicking an un-expanded node

This commit is contained in:
David Sansome 2011-03-17 19:52:15 +00:00
parent a2d62883c2
commit 0594fc53af
1 changed files with 5 additions and 0 deletions

View File

@ -474,6 +474,11 @@ QVariant LibraryModel::data(const LibraryItem* item, int role) const {
return item->metadata.artist();
case Role_Editable:
if (!item->lazy_loaded) {
const_cast<LibraryModel*>(this)->LazyPopulate(
const_cast<LibraryItem*>(item), true);
}
if(item->type == LibraryItem::Type_Container) {
// if we have even one non editable item as a child, we ourselves
// are not available for edit