aboutsummaryrefslogtreecommitdiff
path: root/src/ui/mainwindow.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-04-04 19:46:17 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-04-04 19:46:17 +0000
commitb02f09d54e9e492090cce54c9ce908b0c4a00145 (patch)
tree4c628a0b02764ca49d47e02f56dd202e789f9db8 /src/ui/mainwindow.cpp
parent95d26324afe30cab21c2e79e8618e538ab9c6dde (diff)
downloadqmmp-b02f09d54e9e492090cce54c9ce908b0c4a00145.tar.gz
qmmp-b02f09d54e9e492090cce54c9ce908b0c4a00145.tar.bz2
qmmp-b02f09d54e9e492090cce54c9ce908b0c4a00145.zip
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
Diffstat (limited to 'src/ui/mainwindow.cpp')
-rw-r--r--src/ui/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
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());