mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Show a empty-tooltip for collection views.
This commit is contained in:
@@ -306,6 +306,11 @@ ViewManager::show( const Tomahawk::collection_ptr& collection )
|
|||||||
TreeModel* model = new TreeModel();
|
TreeModel* model = new TreeModel();
|
||||||
view->setTreeModel( model );
|
view->setTreeModel( model );
|
||||||
|
|
||||||
|
if ( collection && collection->source()->isLocal() )
|
||||||
|
view->setEmptyTip( tr( "After you have scanned your music collection you will find your tracks right here." ) );
|
||||||
|
else
|
||||||
|
view->setEmptyTip( tr( "This collection is empty." ) );
|
||||||
|
|
||||||
model->addCollection( collection );
|
model->addCollection( collection );
|
||||||
|
|
||||||
m_treeViews.insert( collection, view );
|
m_treeViews.insert( collection, view );
|
||||||
|
Reference in New Issue
Block a user