From 3eb9d24817a1af29f0d76c7fe97ee6d76f4b9f5c Mon Sep 17 00:00:00 2001 From: Thomas Frauendorfer Date: Sat, 18 Jul 2009 22:00:02 +0200 Subject: [PATCH] OTHER: Correctly update a playlist when entries are added --- lib/playlistmodel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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")) {