diff options
author | Nat <natcl@hotmail.com> | 2007-07-06 15:26:19 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-07-06 15:26:19 (GMT) |
commit | 265a77be550050376e9d37297816d247bf3868db (patch) | |
tree | bf3c670ebbddea8599c2ef32d6df94191b088485 /SynthLab | |
parent | 3c0791e05fcef3fa11dc8a8c71e68dfeb4bcd6dc (diff) |
Journal close
Diffstat (limited to 'SynthLab')
-rw-r--r-- | SynthLab/SynthLabWindow.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SynthLab/SynthLabWindow.py b/SynthLab/SynthLabWindow.py index 02bf08e..aca3c13 100644 --- a/SynthLab/SynthLabWindow.py +++ b/SynthLab/SynthLabWindow.py @@ -48,6 +48,7 @@ class SynthLabWindow(SubActivity): self.duration = 2 self.durString = '%.2f' % self.duration self.playingPitch = [] + self.journalCalled = False loopPointsTable = [] sample_names = [name for i in range( len( Config.INSTRUMENTS ) ) for name in Config.INSTRUMENTS.keys() if Config.INSTRUMENTS[ name ].instrumentId == i ] @@ -274,6 +275,8 @@ class SynthLabWindow(SubActivity): if self.recCount >= 9: self.recCount = 0 def handleClose( self, widget, data ): + if self.journalCalled: + gtk.main_quit() if self.instanceOpen: self.synthLabParametersWindow.destroy() self.set_mode('welcome') |