mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 17:14:00 +02:00
* Only show results-box if there are multiple results.
This commit is contained in:
@@ -223,6 +223,7 @@ TrackDetailView::onResultsChanged()
|
|||||||
{
|
{
|
||||||
if ( !result->isOnline() )
|
if ( !result->isOnline() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
QFont f = font();
|
QFont f = font();
|
||||||
f.setWeight( QFont::DemiBold );
|
f.setWeight( QFont::DemiBold );
|
||||||
f.setPointSize( 11 );
|
f.setPointSize( 11 );
|
||||||
@@ -254,6 +255,6 @@ TrackDetailView::onResultsChanged()
|
|||||||
m_resultsBox->layout()->addWidget( hbox );
|
m_resultsBox->layout()->addWidget( hbox );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_query->numResults() )
|
if ( m_query->numResults() > 1 )
|
||||||
m_resultsBox->show();
|
m_resultsBox->show();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user