watch for when theres no clients and avoid exceptions, just don't do shit all

This commit is contained in:
Dana Jansens 2003-02-04 10:19:59 +00:00
parent 77ba370207
commit b001e857fc

View file

@ -192,6 +192,8 @@ class cycledata:
# popup disappears, screwing up the focus
ob.mgrab(self.screen.number())
if not len(self.clients): return # don't both doing anything
self.menuwidgets[self.menupos].unfocus()
if forward:
self.menupos += 1