diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c3909dc6..aefd6c75 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -460,11 +460,12 @@ void MainWindow::refresh() void MainWindow::refreshed(const lib::spt::playback &playback) { - emit playbackRefreshed(playback, current.playback); - - const auto trackChange = current.playback.item.id != playback.item.id; + const auto previous = current.playback; + const auto trackChange = previous.item.id != playback.item.id; current.playback = playback; + emit playbackRefreshed(playback, previous); + if (!current.playback.item.is_valid()) { setWindowTitle(APP_NAME);