--- a/upqo/ohplaylist_qo.h
+++ b/upqo/ohplaylist_qo.h
@@ -55,8 +55,11 @@
{
//qDebug() << "OHPL: Changed: " << nm << " (int): " << value;
if (!strcmp(nm, "Id")) {
+ // We could test for an unchanged Id, but let our clients
+ // do this because it's quite possible that we emit the
+ // first signal before we are connected
+ m_curid = value;
emit trackIdChanged(value);
- m_curid = value;
} else if (!strcmp(nm, "TransportState")) {
emit tpStateChanged(value);
} else if (!strcmp(nm, "Shuffle")) {
@@ -231,7 +234,7 @@
//qDebug() << "OHPL::onIdArrayChanged: emit trackArrayChanged(). " <<
// "idsv size" << m_idsv.size() << " pool size " << m_metapool.size();
emit trackArrayChanged();
-
+ emit trackIdChanged(m_curid);
out:
return;
}