diff --git a/core/playlist.cpp b/core/playlist.cpp index 78129889..ff77dede 100644 --- a/core/playlist.cpp +++ b/core/playlist.cpp @@ -17,13 +17,17 @@ public: set_flag(Q_NO_SORT); } + void clear() + { + while (size() > 0) + del((unsigned)0); + } + void fill(IndexEntry *ent) { std::set::iterator it; - while (size() > 0) - del((unsigned)0); - + clear(); for (it = ent->begin(); it != ent->end(); it++) add(tags :: get_track(*it)); }