From e9c98733b392c4cfba66735e5fabbd3a4403194d Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Sun, 18 Nov 2012 22:14:06 +0100 Subject: [PATCH] Also update song count when tags are loaded: I don't know why but there not updated in Init --- src/devices/cddadevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cddadevice.cpp b/src/devices/cddadevice.cpp index e8fedf13e..7e4239919 100644 --- a/src/devices/cddadevice.cpp +++ b/src/devices/cddadevice.cpp @@ -127,7 +127,6 @@ void CddaDevice::Init() { gst_object_unref(GST_OBJECT(pipe)); gst_object_unref(GST_OBJECT(msg)); gst_tag_list_free(tags); - } void CddaDevice::AudioCDTagsLoaded(const QString& artist, const QString& album, @@ -154,6 +153,7 @@ void CddaDevice::AudioCDTagsLoaded(const QString& artist, const QString& album, } connect(this, SIGNAL(SongsDiscovered(const SongList&)), model_, SLOT(SongsDiscovered(const SongList&))); emit SongsDiscovered(songs); + song_count_ = songs.size(); } void CddaDevice::Refresh() {