From 4da0809944474ccd059d0ab89d17f500c8d8d8ea Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 26 Sep 2010 07:22:18 +0000 Subject: fixed 'copy selection' patch (Avihay Baratz) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1914 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistitem.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/qmmpui/playlistitem.cpp') diff --git a/src/qmmpui/playlistitem.cpp b/src/qmmpui/playlistitem.cpp index d13d7ab18..4ff602948 100644 --- a/src/qmmpui/playlistitem.cpp +++ b/src/qmmpui/playlistitem.cpp @@ -32,6 +32,17 @@ PlayListItem::PlayListItem() : AbstractPlaylistItem(), m_flag(FREE) m_current = false; } +PlayListItem::PlayListItem(const PlayListItem &other) : AbstractPlaylistItem(other), m_flag(other.m_flag) +{ + m_title = other.m_title; + if (other.m_info) + { + m_info = new FileInfo(*(other.m_info)); + } + m_selected = other.m_selected; + m_current = other.m_current; +} + PlayListItem::PlayListItem(FileInfo *info) : AbstractPlaylistItem(), m_flag(FREE) { m_selected = false; -- cgit v1.2.3-13-gbd6f