If we recieve an error from MPD via status, then display this in the main window.
This commit is contained in:
@@ -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
|
||||
-----
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user