changeset 733:53da47fd5a90

KC doesn't crash when you're testing a show with no subs Ignore-this: ba2d8218a20140f563d831a44407a252
author Drew Perttula <drewp@bigasterisk.com>
date Fri, 15 Jun 2012 02:18:43 +0000
parents 440d116ba5df
children d230824728aa
files bin/keyboardcomposer
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/keyboardcomposer	Fri Jun 15 01:57:52 2012 +0000
+++ b/bin/keyboardcomposer	Fri Jun 15 02:18:43 2012 +0000
@@ -108,8 +108,9 @@
 
         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)