mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
Style fixes in TomahawkWindow.
This commit is contained in:
@@ -1418,13 +1418,17 @@ 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);
|
if ( search.startsWith( "tomahawk:" ) )
|
||||||
} else {
|
{
|
||||||
ViewManager::instance()->show( new SearchWidget( search, this ) );
|
APP->loadUrl( search );
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
|
{
|
||||||
|
ViewManager::instance()->show( new SearchWidget( search, this ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user