1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-09 15:47:38 +02: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; return;
PlayableProxyModel* model = qobject_cast<PlayableProxyModel*>( m_itemView->model() ); 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(); hide();
} }