diff --git a/lib/playlistmodel.cpp b/lib/playlistmodel.cpp index 827ba1e..39d1acf 100644 --- a/lib/playlistmodel.cpp +++ b/lib/playlistmodel.cpp @@ -167,7 +167,7 @@ PlaylistModel::handle_change (const Xmms::Dict &chg) { int32_t change = chg.get ("type"); int32_t pos = 0, npos = 0; - uint32_t id = 0; + int32_t id = 0; QString s; if (chg.contains ("position")) { @@ -175,7 +175,11 @@ PlaylistModel::handle_change (const Xmms::Dict &chg) } if (chg.contains ("id")) { +#if HAVE_XMMSV + id = chg.get ("id"); +#else id = chg.get ("id"); +#endif } if (chg.contains ("name")) {