From 3cfff3a5a04d87457eba3aa749b2f4d4cdbc8374 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 19 Oct 2009 10:31:43 +0000 Subject: fixed bug which causes current track loss git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1326 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index c4e8bda54..0f1eda511 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -417,6 +417,8 @@ void PlayListModel::readSettings() foreach(FileInfo *info, infoList) load(new PlayListItem(info)); m_block_update_signals = FALSE; + if(!m_items.isEmpty()) + m_currentItem = m_items.at(m_current); doCurrentVisibleRequest(); } -- cgit v1.2.3-13-gbd6f