aboutsummaryrefslogtreecommitdiff
path: root/src/components/sound.py
diff options
context:
space:
mode:
authortassaron2017-08-20 18:36:43 -0400
committertassaron2017-08-20 18:36:43 -0400
commit6bf8a553d6170e0ca6e7d2002e46ae327a6e5e81 (patch)
treeb97c9c2d334772fff1c38c5a6a2a4a5b3e6863e4 /src/components/sound.py
parentbe9eb9077b2234e6d91c78d70bb8e1d8347b03aa (diff)
don't merge undos when setting text with a button
plus changes to life.py for pep8 compliance
Diffstat (limited to 'src/components/sound.py')
-rw-r--r--src/components/sound.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/sound.py b/src/components/sound.py
index b86f40c..18d2a65 100644
--- a/src/components/sound.py
+++ b/src/components/sound.py
@@ -52,7 +52,9 @@ class Component(Component):
"Audio Files (%s)" % " ".join(self.core.audioFormats))
if filename:
self.settings.setValue("componentDir", os.path.dirname(filename))
+ self.mergeUndo = False
self.page.lineEdit_sound.setText(filename)
+ self.mergeUndo = True
def commandHelp(self):
print('Path to audio file:\n path=/filepath/to/sound.ogg')