1
0
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:
Christian Muehlhaeuser 2012-06-07 08:55:34 +02:00
parent 8c9d209940
commit 8ba433afa5

View File

@ -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();
}