From a3545712ca38715bd0bd3fe5d22d40a4c58df27f Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 1 Jun 2012 09:38:54 +0200 Subject: [PATCH] * Show a empty-tooltip for collection views. --- src/libtomahawk/ViewManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libtomahawk/ViewManager.cpp b/src/libtomahawk/ViewManager.cpp index 35c5970d5..445eea592 100644 --- a/src/libtomahawk/ViewManager.cpp +++ b/src/libtomahawk/ViewManager.cpp @@ -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 );