1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

* Show a empty-tooltip for collection views.

This commit is contained in:
Christian Muehlhaeuser 2012-06-01 09:38:54 +02:00
parent 393d3370d3
commit a3545712ca

View File

@ -305,6 +305,11 @@ ViewManager::show( const Tomahawk::collection_ptr& collection )
view = new TreeView();
TreeModel* model = new TreeModel();
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 );