mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-21 16:31:58 +02:00
* The year-property is now part of the track object.
This commit is contained in:
parent
68a8503d93
commit
611f887882
@ -225,8 +225,8 @@ PlayableModel::queryData( const query_ptr& query, int column, int role ) const
|
||||
break;
|
||||
|
||||
case Year:
|
||||
if ( query->results().first()->year() != 0 )
|
||||
return query->results().first()->year();
|
||||
if ( query->results().first()->track()->year() != 0 )
|
||||
return query->results().first()->track()->year();
|
||||
break;
|
||||
|
||||
case Filesize:
|
||||
|
@ -325,7 +325,7 @@ PlayableProxyModel::lessThan( int column, const Tomahawk::query_ptr& q1, const T
|
||||
duration1 = r->track()->duration();
|
||||
mtime1 = r->modificationTime();
|
||||
size1 = r->size();
|
||||
year1 = r->year();
|
||||
year1 = r->track()->year();
|
||||
score1 = r->score();
|
||||
origin1 = r->friendlySource().toLower();
|
||||
id1 = (qint64)&r;
|
||||
@ -337,7 +337,7 @@ PlayableProxyModel::lessThan( int column, const Tomahawk::query_ptr& q1, const T
|
||||
duration2 = r->track()->duration();
|
||||
mtime2 = r->modificationTime();
|
||||
size2 = r->size();
|
||||
year2 = r->year();
|
||||
year2 = r->track()->year();
|
||||
score2 = r->score();
|
||||
origin2 = r->friendlySource().toLower();
|
||||
id2 = (qint64)&r;
|
||||
|
Loading…
x
Reference in New Issue
Block a user