aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/mainwindow.cpp2
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);