1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-01 09:53:57 +02:00

* Disable 'Create new station' item in sidebar.

This commit is contained in:
Christian Muehlhaeuser
2012-12-29 18:48:10 +01:00
parent d002448fd6
commit c25370c168

View File

@@ -97,7 +97,7 @@ SourceItem::SourceItem( SourcesModel* mdl, SourceTreeItem* parent, const Tomahaw
}
if ( !stations.isEmpty() || source->isLocal() )
{
m_stations = new CategoryItem( model(), this, SourcesModel::StationsCategory, source->isLocal() );
m_stations = new CategoryItem( model(), this, SourcesModel::StationsCategory, /* source->isLocal() */ false );
onStationsAdded( stations );
}
@@ -431,7 +431,7 @@ SourceItem::onStationsAdded( const QList< dynplaylist_ptr >& stations )
// add the category too
int cur = children().count();
beginRowsAdded( cur, cur );
m_stations = new CategoryItem( model(), this, SourcesModel::StationsCategory, source()->isLocal() );
m_stations = new CategoryItem( model(), this, SourcesModel::StationsCategory, /* source()->isLocal() */ false );
endRowsAdded();
}