fix crash that happened with empty playlist and pressed space
This commit is contained in:
@@ -227,7 +227,7 @@ void Playlist::EnterPressed()
|
|||||||
|
|
||||||
void Playlist::SpacePressed()
|
void Playlist::SpacePressed()
|
||||||
{
|
{
|
||||||
if (w == Items)
|
if (w == Items && !Items->Empty())
|
||||||
{
|
{
|
||||||
Items->Select(Items->Choice(), !Items->isSelected());
|
Items->Select(Items->Choice(), !Items->isSelected());
|
||||||
Items->Scroll(wDown);
|
Items->Scroll(wDown);
|
||||||
|
|||||||
Reference in New Issue
Block a user