mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 16:14:40 +02:00
Added tomahawk:// link functionality search
This commit is contained in:
committed by
Uwe L. Korn
parent
ad07b285ee
commit
3b75f4e294
@@ -1346,9 +1346,14 @@ TomahawkWindow::checkForUpdates()
|
|||||||
void
|
void
|
||||||
TomahawkWindow::onSearch( const QString& search )
|
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 ) );
|
ViewManager::instance()->show( new SearchWidget( search, this ) );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user