1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

* Use cached sortname instead of recalculating it over and over again.

This commit is contained in:
Christian Muehlhaeuser
2011-09-06 06:43:52 +02:00
parent dc11760640
commit 00973e6365

View File

@@ -360,7 +360,7 @@ TreeProxyModel::textForItem( TreeModelItem* item ) const
if ( !item->artist().isNull() ) if ( !item->artist().isNull() )
{ {
return DatabaseImpl::sortname( item->artist()->name(), true ); return item->artist()->sortname();
} }
else if ( !item->album().isNull() ) else if ( !item->album().isNull() )
{ {