mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +02:00
* Never show an empty OverlayWidget.
This commit is contained in:
@@ -131,7 +131,7 @@ void
|
|||||||
OverlayWidget::onViewChanged()
|
OverlayWidget::onViewChanged()
|
||||||
{
|
{
|
||||||
PlayableProxyModel* model = qobject_cast<PlayableProxyModel*>( m_parent->model() );
|
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();
|
hide();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user