1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-24 09:49:42 +01:00

Make factory name show up in accounts list

This commit is contained in:
Dominik Schmidt 2012-11-11 00:58:53 +01:00
parent 38211e166f
commit dd1418f1a3

@ -332,7 +332,7 @@ AccountModel::data( const QModelIndex& index, int role ) const
switch ( role )
{
case Qt::DisplayRole:
return acct->accountFriendlyName();
return !acct->accountFriendlyName().isEmpty() ? acct->accountFriendlyName() : node->factory->prettyName();
case Qt::DecorationRole:
return acct->icon();
case DescriptionRole: