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/playlistmodel.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/playlistmodel.cpp')
| -rw-r--r-- | src/ui/playlistmodel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/playlistmodel.cpp b/src/ui/playlistmodel.cpp index f752ebb75..85adfe6d8 100644 --- a/src/ui/playlistmodel.cpp +++ b/src/ui/playlistmodel.cpp @@ -109,6 +109,9 @@ void PlayListModel::load ( MediaFile *file ) m_total_length += file->length(); m_files << file; + if (m_files.size() == 1) + emit firstAdded(); + //if (!m_block_update_signals) emit listChanged(); } |
