1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-02-08 07:48:48 +01:00

Fix update song length in context

This commit is contained in:
Jonas Kvinge 2020-04-20 18:52:59 +02:00
parent 39347d69df
commit 2a6806004a

View File

@ -597,7 +597,7 @@ void ContextView::UpdateSong(const Song &song) {
if (action_show_data_->isChecked()) { if (action_show_data_->isChecked()) {
if (song.filetype() != song_playing_.filetype()) label_filetype_->setText(song.TextForFiletype()); if (song.filetype() != song_playing_.filetype()) label_filetype_->setText(song.TextForFiletype());
if (song.length_nanosec() != song_playing_.length_nanosec()){ if (song.length_nanosec() != song_playing_.length_nanosec()){
if (song_playing_.length_nanosec() <= 0) { if (song.length_nanosec() <= 0) {
label_length_title_->hide(); label_length_title_->hide();
label_length_->hide(); label_length_->hide();
label_length_->clear(); label_length_->clear();