mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Make factory name show up in accounts list
This commit is contained in:
@@ -332,7 +332,7 @@ AccountModel::data( const QModelIndex& index, int role ) const
|
|||||||
switch ( role )
|
switch ( role )
|
||||||
{
|
{
|
||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
return acct->accountFriendlyName();
|
return !acct->accountFriendlyName().isEmpty() ? acct->accountFriendlyName() : node->factory->prettyName();
|
||||||
case Qt::DecorationRole:
|
case Qt::DecorationRole:
|
||||||
return acct->icon();
|
return acct->icon();
|
||||||
case DescriptionRole:
|
case DescriptionRole:
|
||||||
|
Reference in New Issue
Block a user