browser: do nothing if space is pressed and parent dir is highlighted

This commit is contained in:
Andrzej Rybczak
2009-08-29 20:41:56 +02:00
parent caac726891
commit f0ebc47785

View File

@@ -132,7 +132,7 @@ void Browser::SpacePressed()
return;
}
if (w->Empty())
if (w->Empty() || (itsBrowsedDir != "/" && w->Choice() == 0 /* parent dir */))
return;
const Item &item = w->Current();