From 025ff2ee76e421b6ff1befbffe83710116ae8ec3 Mon Sep 17 00:00:00 2001 From: "craig.p.drummond@gmail.com" Date: Wed, 15 Aug 2012 11:12:13 +0000 Subject: [PATCH] Dont attempt to get current song if we are still inactive --- gui/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 1a94a59dd..b54d4a5a7 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -2561,8 +2561,8 @@ void MainWindow::updateStatus(MPDStatus * const status) // Check if song has changed or we're playing again after being stopped // and update song info if needed - if (lastState == MPDState_Inactive - || (lastState == MPDState_Stopped && status->state() == MPDState_Playing) + if ((MPDState_Inactive==lastState && MPDState_Inactive!=status->state()) + || (MPDState_Stopped==lastState && MPDState_Playing==status->state()) || lastSongId != status->songId()) { emit currentSong(); }