1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +02:00

Style fixes in TomahawkWindow.

This commit is contained in:
Christian Muehlhaeuser
2014-10-12 12:21:46 +02:00
parent 694ed75802
commit ceeb7ff7c5

View File

@@ -1418,10 +1418,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:" ) ) { {
if ( search.startsWith( "tomahawk:" ) )
{
APP->loadUrl( search ); APP->loadUrl( search );
} else { }
else
{
ViewManager::instance()->show( new SearchWidget( search, this ) ); ViewManager::instance()->show( new SearchWidget( search, this ) );
} }
} }