diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-02-28 21:16:56 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-02-28 21:16:56 +0000 |
| commit | b08a32af23dcc3840f16ee3eaff3e873e947d494 (patch) | |
| tree | 226190a852e02086b0c4cc506bc7fc54df9c73da /src/ui/mainwindow.cpp | |
| parent | c0a55b00448a13c0392bdf947c25233d05d5824f (diff) | |
| download | qmmp-b08a32af23dcc3840f16ee3eaff3e873e947d494.tar.gz qmmp-b08a32af23dcc3840f16ee3eaff3e873e947d494.tar.bz2 qmmp-b08a32af23dcc3840f16ee3eaff3e873e947d494.zip | |
make duration of files with empty tags available by general plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@261 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/mainwindow.cpp')
| -rw-r--r-- | src/ui/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 07b0c647b..b5fb8a6f9 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -335,10 +335,10 @@ void MainWindow::showOutputState(const OutputState &st) info.setValue(SongInfo::GENRE, tag->genre()); info.setValue(SongInfo::YEAR, tag->year()); info.setValue(SongInfo::TRACK, tag->track()); - info.setValue(SongInfo::LENGTH, tag->length()); } else info.setValue(SongInfo::TITLE, m_playlist->currentItem()->title()); + info.setValue(SongInfo::LENGTH, (uint) m_playlist->currentItem()->length()); info.setValue(SongInfo::STREAM, m_playlist->currentItem()->path().startsWith("http://")); m_generalHandler->setSongInfo(info); |
