From 8f1079999bf22ad61283018766a48ed4ec9ff911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nino=20Mi=C5=A1ki=C4=87-Pletenac?= Date: Fri, 17 Sep 2021 23:32:00 +0200 Subject: [PATCH] Reset main window title when all decks stop playing This fixes regression caused by 37c41e5daf19dcac0b148a5d02792f4c15c81078. --- src/mixer/playerinfo.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mixer/playerinfo.cpp b/src/mixer/playerinfo.cpp index 8d0aa4a31ad..584ea89cd2c 100644 --- a/src/mixer/playerinfo.cpp +++ b/src/mixer/playerinfo.cpp @@ -171,10 +171,7 @@ void PlayerInfo::updateCurrentPlayingDeck() { // Note: When starting Auto-DJ "play" might be processed before a new // is track is fully loaded. currentPlayingTrackChanged() is then emitted // after setTrackInfo(). - TrackPointer pTrack = getCurrentPlayingTrack(); - if (pTrack) { - emit currentPlayingTrackChanged(pTrack); - } + emit currentPlayingTrackChanged(getCurrentPlayingTrack()); } }