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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user