From 2be01b8b369a0238daa2d3281a43330ae3869d0f Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 15 Mar 2009 22:01:49 +0000 Subject: fixed bug: qmmp continues current track instead of loading new one git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@854 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 4ab15af09..37ec0b0cf 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -532,7 +532,9 @@ void MainWindow::savePlaylist() void MainWindow::setFileList(const QStringList & l) { - connect(m_playListModel, SIGNAL(firstAdded()), SLOT(play())); + if (m_core->state() == Qmmp::Playing || m_core->state() == Qmmp::Paused) + stop(); + connect(m_playListModel, SIGNAL(firstAdded()), this, SLOT(play())); if (!m_playListModel->setFileList(l)) { disconnect(m_playListModel, SIGNAL(firstAdded()), this, SLOT(play())); -- cgit v1.2.3-13-gbd6f