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:
committed by
Uwe L. Korn
parent
ad07b285ee
commit
3b75f4e294
@@ -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 ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user