diff options
| -rw-r--r-- | src/ui/mainwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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())); |
