From c25370c168760d6c1857b215332595c1db960ed9 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 29 Dec 2012 18:48:10 +0100 Subject: [PATCH] * Disable 'Create new station' item in sidebar. --- src/sourcetree/items/SourceItem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sourcetree/items/SourceItem.cpp b/src/sourcetree/items/SourceItem.cpp index e6a18c4eb..399a0a561 100644 --- a/src/sourcetree/items/SourceItem.cpp +++ b/src/sourcetree/items/SourceItem.cpp @@ -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(); }