1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-09 23:57:34 +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,9 +1346,14 @@ TomahawkWindow::checkForUpdates()
void
TomahawkWindow::onSearch( const QString& search )
{
if ( !search.trimmed().isEmpty() )
if ( !search.trimmed().isEmpty() ) {
if( search.startsWith( "tomahawk:" ) ) {
APP->loadUrl(search);
} else {
ViewManager::instance()->show( new SearchWidget( search, this ) );
}
}
}
void