Skip to content

Commit

Permalink
Fix exception in recorderui #466
Browse files Browse the repository at this point in the history
  • Loading branch information
dpeite committed Apr 11, 2017
1 parent d121866 commit 0bc1f41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion galicaster/classui/recorderui.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def __init__(self, package=None):

# UI
self.pack_start(self.recorderui,True,True,0)
self.pause_dialog = None

# Event Manager
self.dispatcher.connect_ui("recorder-vumeter", self.set_vumeter)
Expand Down Expand Up @@ -699,7 +700,8 @@ def handle_status(self, origin, status):
swapb = self.gui.get_object("swapbutton")

if status == INIT_STATUS:
self.pause_dialog.destroy()
if self.pause_dialog:
self.pause_dialog.destroy()
record.set_sensitive(False)
pause.set_sensitive(False)
stop.set_sensitive(False)
Expand Down

0 comments on commit 0bc1f41

Please sign in to comment.