Don't be stupid with m_currentid
This commit is contained in:
parent
4c02a3b938
commit
7b5f4f5a38
2 changed files with 2 additions and 3 deletions
|
@ -148,7 +148,6 @@ MedialibList::mimeData(const QList<QListWidgetItem*> items) const
|
||||||
MedialibListItem *it = dynamic_cast<MedialibListItem *> (currentItem ());
|
MedialibListItem *it = dynamic_cast<MedialibListItem *> (currentItem ());
|
||||||
|
|
||||||
QDataStream stream(&encodedData, QIODevice::WriteOnly);
|
QDataStream stream(&encodedData, QIODevice::WriteOnly);
|
||||||
qDebug ("%s %s", qPrintable (it->getArtist ()), qPrintable (it->getAlbum ()));
|
|
||||||
stream << it->getArtist ();
|
stream << it->getArtist ();
|
||||||
stream << it->getAlbum ();
|
stream << it->getAlbum ();
|
||||||
|
|
||||||
|
|
|
@ -84,8 +84,6 @@ XMMSHandler::medialib_entry_changed (XMMSResultValue<uint> *res)
|
||||||
uint i;
|
uint i;
|
||||||
res->getValue (&i);
|
res->getValue (&i);
|
||||||
|
|
||||||
m_currentid = i;
|
|
||||||
|
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
XMMSResultDict *r = m_xmmsc->medialib_get_info (i);
|
XMMSResultDict *r = m_xmmsc->medialib_get_info (i);
|
||||||
r->connect (sigc::mem_fun (this, &XMMSHandler::medialib_info));
|
r->connect (sigc::mem_fun (this, &XMMSHandler::medialib_info));
|
||||||
|
@ -179,6 +177,8 @@ XMMSHandler::playback_current_id (XMMSResultValue<uint> *res)
|
||||||
|
|
||||||
m_currentid = i;
|
m_currentid = i;
|
||||||
|
|
||||||
|
qDebug ("currentid = %d", m_currentid);
|
||||||
|
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
XMMSResultDict *r = m_xmmsc->medialib_get_info (i);
|
XMMSResultDict *r = m_xmmsc->medialib_get_info (i);
|
||||||
r->connect (sigc::mem_fun (this, &XMMSHandler::medialib_info));
|
r->connect (sigc::mem_fun (this, &XMMSHandler::medialib_info));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue