# HG changeset patch # User Drew Perttula # Date 2012-06-15 02:18:43 # Node ID 53da47fd5a90748fdc68bf18de29625fed11a46f # Parent 440d116ba5df7a1f2782d6ce3525862b63bd144a KC doesn't crash when you're testing a show with no subs Ignore-this: ba2d8218a20140f563d831a44407a252 diff --git a/bin/keyboardcomposer b/bin/keyboardcomposer --- a/bin/keyboardcomposer +++ b/bin/keyboardcomposer @@ -108,8 +108,9 @@ class KeyboardComposer(Frame, SubClient) self.make_key_hints() self.draw_sliders() - self.change_row(self.current_row) - self.rows[self.current_row].focus() + if len(self.rows): + self.change_row(self.current_row) + self.rows[self.current_row].focus() self.buttonframe = Frame(self, bg='black') self.buttonframe.pack(side=BOTTOM)