If we recieve an error from MPD via status, then display this in the main window.

This commit is contained in:
craig.p.drummond
2013-09-26 18:03:58 +00:00
parent 5ba506f542
commit 718b1b19fb
2 changed files with 6 additions and 0 deletions

View File

@@ -57,6 +57,8 @@
7. If no icon is to be used on a message-box button, then ensure the icon is
cleared.
8. Fix display of album year in playqueue for KDE builds.
9. If we recieve an error from MPD via status, then display this in the main
window.
1.1.2
-----

View File

@@ -1921,6 +1921,10 @@ void MainWindow::updateStatus()
void MainWindow::updateStatus(MPDStatus * const status)
{
if (!status->error().isEmpty()) {
showError(i18n("MPD reported the following error: %1", status->error()));
}
if (MPDState_Stopped==status->state() || MPDState_Inactive==status->state()) {
positionSlider->clearTimes();
playQueueModel.clearStopAfterTrack();