mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
* Never show an empty OverlayWidget.
This commit is contained in:
@@ -131,7 +131,7 @@ void
|
||||
OverlayWidget::onViewChanged()
|
||||
{
|
||||
PlayableProxyModel* model = qobject_cast<PlayableProxyModel*>( m_parent->model() );
|
||||
if ( model && ( model->rowCount( QModelIndex() ) || model->isLoading() ) )
|
||||
if ( m_text.isEmpty() || ( model && ( model->rowCount( QModelIndex() ) || model->isLoading() ) ) )
|
||||
{
|
||||
hide();
|
||||
}
|
||||
|
Reference in New Issue
Block a user