1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

show name when editing first

This commit is contained in:
Leo Franchi
2011-04-22 17:39:01 -04:00
parent 519e1bb71e
commit 056efe2cd9

View File

@@ -77,6 +77,7 @@ SourcesModel::data( const QModelIndex& index, int role ) const
case SourceTreeItemTypeRole: case SourceTreeItemTypeRole:
return itemFromIndex( index )->type(); return itemFromIndex( index )->type();
case Qt::DisplayRole: case Qt::DisplayRole:
case Qt::EditRole:
return itemFromIndex( index )->text(); return itemFromIndex( index )->text();
case Qt::DecorationRole: case Qt::DecorationRole:
return itemFromIndex( index )->icon(); return itemFromIndex( index )->icon();