Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2007-07-10 17:37:32 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2007-07-10 17:37:32 (GMT)
commit28b1e6237e6bac93a52d8cd88c2eb205c9c94790 (patch)
tree846f10ca5e9dc9b0c535e6324b2840c304ffac02 /Edit
parent3f21e3c199d00b270d8bb7f39310e7bb36cc6341 (diff)
fix crash on createNewTune when playing music
Diffstat (limited to 'Edit')
-rw-r--r--Edit/MainWindow.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py
index be84c1a..fbd8c9b 100644
--- a/Edit/MainWindow.py
+++ b/Edit/MainWindow.py
@@ -539,6 +539,9 @@ class MainWindow( SubActivity ):
def createNewTune( self, widget, data=None ):
+ if self.playing == True:
+ self.handleStop(self.GUI["2stopButton"])
+
self.tuneInterface.selectPages( self.noteDB.getTune() )
beats = random.randint(3,8)