aboutsummaryrefslogtreecommitdiff
path: root/music_sampler
diff options
context:
space:
mode:
Diffstat (limited to 'music_sampler')
-rw-r--r--music_sampler/key.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/music_sampler/key.py b/music_sampler/key.py
index 983c5a6..ce2f45b 100644
--- a/music_sampler/key.py
+++ b/music_sampler/key.py
@@ -290,8 +290,9 @@ class Key(ButtonBehavior, Widget):
290 # Helpers 290 # Helpers
291 @property 291 @property
292 def repeat_delay(self): 292 def repeat_delay(self):
293 if 'repeat_delay' in self.key.config['properties']: 293 if hasattr(self, 'config') and\
294 return self.key.config['properties']['repeat_delay'] 294 'repeat_delay' in self.config['properties']:
295 return self.config['properties']['repeat_delay']
295 else: 296 else:
296 return 0 297 return 0
297 298