From e6a359ae76080071701e6c823a9251df4fdaf008 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 6 Dec 2009 14:02:23 +0100 Subject: [PATCH] fix crash that happened with empty playlist and pressed space --- src/playlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlist.cpp b/src/playlist.cpp index c6c32c31..ee16e1a7 100644 --- a/src/playlist.cpp +++ b/src/playlist.cpp @@ -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);