Commit 31c1c4d4 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: correctly clear the info panel cover Art

Manual cherry-pick of 2ea0e546475dac1dd9032a06937966ed3d115ca9
parent c9774505
...@@ -327,6 +327,7 @@ void MetaPanel::clear() ...@@ -327,6 +327,7 @@ void MetaPanel::clear()
nowplaying_text->clear(); nowplaying_text->clear();
publisher_text->clear(); publisher_text->clear();
encodedby_text->clear(); encodedby_text->clear();
art_cover->clear();
setEditMode( false ); setEditMode( false );
emit uriSet( "" ); emit uriSet( "" );
......
...@@ -556,6 +556,11 @@ void CoverArtLabel::askForUpdate() ...@@ -556,6 +556,11 @@ void CoverArtLabel::askForUpdate()
THEMIM->getIM()->requestArtUpdate(); THEMIM->getIM()->requestArtUpdate();
} }
void CoverArtLabel::clear()
{
showArtUpdate( "" );
}
TimeLabel::TimeLabel( intf_thread_t *_p_intf, TimeLabel::Display _displayType ) TimeLabel::TimeLabel( intf_thread_t *_p_intf, TimeLabel::Display _displayType )
: QLabel(), p_intf( _p_intf ), bufTimer( new QTimer(this) ), : QLabel(), p_intf( _p_intf ), bufTimer( new QTimer(this) ),
buffering( false ), showBuffering(false), bufVal( -1 ), displayType( _displayType ) buffering( false ), showBuffering(false), bufVal( -1 ), displayType( _displayType )
......
...@@ -238,6 +238,7 @@ public slots: ...@@ -238,6 +238,7 @@ public slots:
requestUpdate(); requestUpdate();
} }
void showArtUpdate( const QString& ); void showArtUpdate( const QString& );
void clear();
private slots: private slots:
void askForUpdate(); void askForUpdate();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment