diff options
Diffstat (limited to 'src/ui/mainwindow.cpp')
| -rw-r--r-- | src/ui/mainwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index e177426f1..0b66c44d0 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -168,6 +168,7 @@ MainWindow::~MainWindow() void MainWindow::play() { + disconnect(m_playListModel, SIGNAL(firstAdded()), this, SLOT(play())); m_playListModel->doCurrentVisibleRequest(); if (m_core->isPaused()) @@ -785,8 +786,12 @@ void MainWindow::savePlaylist() void MainWindow::setFileList(const QStringList & l) { + connect(m_playListModel, SIGNAL(firstAdded()), SLOT(play())); if (!m_playListModel->setFileList(l)) + { + disconnect(m_playListModel, SIGNAL(firstAdded()), this, SLOT(play())); addFile(); + } } void MainWindow::playPause() |
