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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user