Commit 2ea0e546 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: correctly clear the info panel cover Art

parent 8972d2f2
...@@ -335,6 +335,7 @@ void MetaPanel::clear() ...@@ -335,6 +335,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( "" );
......
...@@ -722,6 +722,11 @@ void CoverArtLabel::setArtFromFile() ...@@ -722,6 +722,11 @@ void CoverArtLabel::setArtFromFile()
THEMIM->getIM()->setArt( p_item, fileUrl ); THEMIM->getIM()->setArt( p_item, fileUrl );
} }
void CoverArtLabel::clear()
{
showArtUpdate( "" );
}
TimeLabel::TimeLabel( intf_thread_t *_p_intf, TimeLabel::Display _displayType ) TimeLabel::TimeLabel( intf_thread_t *_p_intf, TimeLabel::Display _displayType )
: ClickableQLabel(), p_intf( _p_intf ), bufTimer( new QTimer(this) ), : ClickableQLabel(), p_intf( _p_intf ), bufTimer( new QTimer(this) ),
buffering( false ), showBuffering(false), bufVal( -1 ), displayType( _displayType ) buffering( false ), showBuffering(false), bufVal( -1 ), displayType( _displayType )
......
...@@ -289,6 +289,7 @@ public slots: ...@@ -289,6 +289,7 @@ public slots:
void showArtUpdate( input_item_t * ); void showArtUpdate( input_item_t * );
void askForUpdate(); void askForUpdate();
void setArtFromFile(); void setArtFromFile();
void clear();
}; };
#endif #endif
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