OTHER: NOW they should be correct types all (tested all, I think)

This commit is contained in:
Jonne Lehtinen 2006-05-27 21:43:38 +03:00 committed by Tobias Rundstrom
parent 336c95805f
commit 9f85634bcf

View file

@ -116,7 +116,7 @@ PlaylistList::setStatus (Xmms::Playback::Status s)
void void
PlaylistList::playlistChanged (const Xmms::Dict &change) PlaylistList::playlistChanged (const Xmms::Dict &change)
{ {
uint signal = change.get<int32_t> ("type"); int signal = change.get<int32_t> ("type");
XMMSHandler &xmmsh = XMMSHandler::getInstance (); XMMSHandler &xmmsh = XMMSHandler::getInstance ();
switch (signal) { switch (signal) {
case XMMS_PLAYLIST_CHANGED_ADD: case XMMS_PLAYLIST_CHANGED_ADD:
@ -132,7 +132,7 @@ PlaylistList::playlistChanged (const Xmms::Dict &change)
case XMMS_PLAYLIST_CHANGED_INSERT: case XMMS_PLAYLIST_CHANGED_INSERT:
{ {
uint id = change.get<uint32_t> ("id"); uint id = change.get<uint32_t> ("id");
uint pos = change.get<uint32_t> ("position"); int pos = change.get<int32_t> ("position");
if (m_itemmap->contains (id)) { if (m_itemmap->contains (id)) {
addItem (m_itemmap->value (id)); addItem (m_itemmap->value (id));
@ -144,7 +144,7 @@ PlaylistList::playlistChanged (const Xmms::Dict &change)
break; break;
case XMMS_PLAYLIST_CHANGED_REMOVE: case XMMS_PLAYLIST_CHANGED_REMOVE:
{ {
uint pos = change.get<uint32_t> ("position"); int pos = change.get<int32_t> ("position");
PlaylistItem *i = m_items->value (pos); PlaylistItem *i = m_items->value (pos);
if (!i) { if (!i) {