1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

* Unbreak latching on.

This commit is contained in:
Christian Muehlhaeuser
2014-09-09 01:02:34 +02:00
parent d0992209cc
commit a4dc4e8c76

View File

@@ -101,6 +101,9 @@ SourcesModel::rowTypeToString( RowType type )
case Group:
return tr( "Group" );
case Source:
return tr( "Source" );
case Collection:
return tr( "Collection" );
@@ -148,7 +151,7 @@ SourcesModel::data( const QModelIndex& index, int role ) const
return item->IDValue();
case SourcesModel::LatchedOnRole:
{
if ( item->type() == Collection )
if ( item->type() == Source )
{
SourceItem* cItem = qobject_cast< SourceItem* >( item );
return cItem->localLatchedOn();
@@ -157,7 +160,7 @@ SourcesModel::data( const QModelIndex& index, int role ) const
}
case SourcesModel::LatchedRealtimeRole:
{
if ( item->type() == Collection )
if ( item->type() == Source )
{
SourceItem* cItem = qobject_cast< SourceItem* >( item );
return cItem->localLatchMode() == Tomahawk::PlaylistModes::RealTime;