1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-07 06:36:55 +02:00

Added tomahawk:// link functionality search

This commit is contained in:
Alexander Forselius
2013-10-12 16:59:03 +02:00
committed by Uwe L. Korn
parent ad07b285ee
commit 3b75f4e294

View File

@@ -1346,8 +1346,13 @@ TomahawkWindow::checkForUpdates()
void
TomahawkWindow::onSearch( const QString& search )
{
if ( !search.trimmed().isEmpty() )
ViewManager::instance()->show( new SearchWidget( search, this ) );
if ( !search.trimmed().isEmpty() ) {
if( search.startsWith( "tomahawk:" ) ) {
APP->loadUrl(search);
} else {
ViewManager::instance()->show( new SearchWidget( search, this ) );
}
}
}