browser: if current dir doesn't exists, go down one level automatically

This commit is contained in:
Andrzej Rybczak
2010-08-10 00:11:44 +02:00
parent a93096fbda
commit 7c75be82bd
4 changed files with 18 additions and 0 deletions

View File

@@ -191,7 +191,13 @@ void MPD::Connection::UpdateStatus()
}
}
// if CheckForErrors() invokes callback, it can do some communication with mpd.
// the problem is, we *have* to be out from idle mode here and issuing commands
// will enter it again, which certainly is not desired, so let's block it for
// a while.
BlockIdle(true);
CheckForErrors();
BlockIdle(false);
if (!itsConnection)
return;