mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-24 09:49:42 +01:00
* Never show an empty OverlayWidget.
This commit is contained in:
parent
4634f95b4c
commit
3a47a5f9c8
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user