From b02f09d54e9e492090cce54c9ce908b0c4a00145 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 4 Apr 2008 19:46:17 +0000 Subject: make file path accessible by general plugins git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@330 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/mainwindow.cpp') diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 083a468c2..d35499282 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -345,6 +345,7 @@ void MainWindow::showOutputState(const OutputState &st) info.setValue(SongInfo::LENGTH, (uint) m_playlist->currentItem()->length()); info.setValue(SongInfo::STREAM, m_playlist->currentItem()->path().startsWith("http://")); + info.setValue(SongInfo::PATH, m_playlist->currentItem()->path()); m_generalHandler->setSongInfo(info); } break; @@ -407,6 +408,7 @@ void MainWindow::showDecoderState(const DecoderState &st) info.setValue(SongInfo::LENGTH, st.tag()->length()); info.setValue(SongInfo::STREAM, m_playlist->currentItem()->path().startsWith("http://")); + info.setValue(SongInfo::PATH, m_playlist->currentItem()->path()); m_generalHandler->setSongInfo(info); } m_playlist->currentItem()->updateTags(st.tag()); -- cgit v1.2.3-13-gbd6f