diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-04-23 15:05:23 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-04-23 15:05:23 +0000 |
| commit | 7e58dddb0028b8326c36038d2a4d432f72ae8d3e (patch) | |
| tree | da848d2c1141eaf1198508a23b24c5d55386a10b /src/ui/mainwindow.cpp | |
| parent | a46e764e8742d4ec5d0399f573c4e1767823dbf7 (diff) | |
| download | qmmp-7e58dddb0028b8326c36038d2a4d432f72ae8d3e.tar.gz qmmp-7e58dddb0028b8326c36038d2a4d432f72ae8d3e.tar.bz2 qmmp-7e58dddb0028b8326c36038d2a4d432f72ae8d3e.zip | |
play file if it was added from command line
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@352 90c681e8-e032-0410-971d-27865f9a5e38
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() |
