From 7e58dddb0028b8326c36038d2a4d432f72ae8d3e Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 23 Apr 2008 15:05:23 +0000 Subject: 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 --- src/ui/playlistmodel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/playlistmodel.cpp') 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(); } -- cgit v1.2.3-13-gbd6f