mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
* Ignore incompatible models.
This commit is contained in:
parent
8c9d209940
commit
8ba433afa5
@ -153,8 +153,10 @@ OverlayWidget::onViewChanged()
|
||||
return;
|
||||
|
||||
PlayableProxyModel* model = qobject_cast<PlayableProxyModel*>( m_itemView->model() );
|
||||
if ( !model )
|
||||
return;
|
||||
|
||||
if ( m_text.isEmpty() || ( model && ( model->rowCount( QModelIndex() ) || model->isLoading() ) ) )
|
||||
if ( m_text.isEmpty() || model->rowCount( QModelIndex() ) || model->isLoading() )
|
||||
{
|
||||
hide();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user