mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
* Unbreak latching on.
This commit is contained in:
@@ -101,6 +101,9 @@ SourcesModel::rowTypeToString( RowType type )
|
|||||||
case Group:
|
case Group:
|
||||||
return tr( "Group" );
|
return tr( "Group" );
|
||||||
|
|
||||||
|
case Source:
|
||||||
|
return tr( "Source" );
|
||||||
|
|
||||||
case Collection:
|
case Collection:
|
||||||
return tr( "Collection" );
|
return tr( "Collection" );
|
||||||
|
|
||||||
@@ -148,7 +151,7 @@ SourcesModel::data( const QModelIndex& index, int role ) const
|
|||||||
return item->IDValue();
|
return item->IDValue();
|
||||||
case SourcesModel::LatchedOnRole:
|
case SourcesModel::LatchedOnRole:
|
||||||
{
|
{
|
||||||
if ( item->type() == Collection )
|
if ( item->type() == Source )
|
||||||
{
|
{
|
||||||
SourceItem* cItem = qobject_cast< SourceItem* >( item );
|
SourceItem* cItem = qobject_cast< SourceItem* >( item );
|
||||||
return cItem->localLatchedOn();
|
return cItem->localLatchedOn();
|
||||||
@@ -157,7 +160,7 @@ SourcesModel::data( const QModelIndex& index, int role ) const
|
|||||||
}
|
}
|
||||||
case SourcesModel::LatchedRealtimeRole:
|
case SourcesModel::LatchedRealtimeRole:
|
||||||
{
|
{
|
||||||
if ( item->type() == Collection )
|
if ( item->type() == Source )
|
||||||
{
|
{
|
||||||
SourceItem* cItem = qobject_cast< SourceItem* >( item );
|
SourceItem* cItem = qobject_cast< SourceItem* >( item );
|
||||||
return cItem->localLatchMode() == Tomahawk::PlaylistModes::RealTime;
|
return cItem->localLatchMode() == Tomahawk::PlaylistModes::RealTime;
|
||||||
|
Reference in New Issue
Block a user