Lyrics: reset position of a window when fetching

This commit is contained in:
Andrzej Rybczak
2018-03-29 17:00:38 +02:00
parent 51fe8dc2c8
commit e912a9d0c3
2 changed files with 2 additions and 0 deletions

1
NEWS
View File

@@ -4,6 +4,7 @@ ncmpcpp-0.8.2 (????-??-??)
* Fixed fetching lyrics from lyricsmania.com, metrolyrics.com and sing365.com
* Search engine now properly interacts with filtering
* Fixed redraw of separator after interface switch while MPD was stopped
* Reset position of a window when fetching lyrics
ncmpcpp-0.8.1 (2017-10-11)
* Setting 'colors_enabled' to 'no' no longer results in a crash.

View File

@@ -278,6 +278,7 @@ void Lyrics::fetch(const MPD::Song &s)
{
stopDownload();
w.clear();
w.reset();
m_song = s;
if (loadLyrics(w, lyricsFilename(m_song)))
{