1
0
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:
Christian Muehlhaeuser 2012-06-01 06:57:13 +02:00
parent 4634f95b4c
commit 3a47a5f9c8

View File

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