mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Enable the "Edit track information..." item in the library context menu when right-clicking an un-expanded node
This commit is contained in:
parent
a2d62883c2
commit
0594fc53af
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user