aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-10-19 10:31:43 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-10-19 10:31:43 +0000
commit3cfff3a5a04d87457eba3aa749b2f4d4cdbc8374 (patch)
tree11ae7c38a6f9466211597ff9a43875e0a1d875d3
parent22ef61fd612f3a2fab3032163f2fd6dc2df1adfd (diff)
downloadqmmp-3cfff3a5a04d87457eba3aa749b2f4d4cdbc8374.tar.gz
qmmp-3cfff3a5a04d87457eba3aa749b2f4d4cdbc8374.tar.bz2
qmmp-3cfff3a5a04d87457eba3aa749b2f4d4cdbc8374.zip
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
-rw-r--r--src/qmmpui/playlistmodel.cpp2
1 files changed, 2 insertions, 0 deletions
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();
}