fix crash that happened with empty playlist and pressed space

This commit is contained in:
Andrzej Rybczak
2009-12-06 14:02:23 +01:00
parent d2d716fd35
commit e6a359ae76

View File

@@ -227,7 +227,7 @@ void Playlist::EnterPressed()
void Playlist::SpacePressed()
{
if (w == Items)
if (w == Items && !Items->Empty())
{
Items->Select(Items->Choice(), !Items->isSelected());
Items->Scroll(wDown);