Skip to content

Commit

Permalink
SoftcamSetup: Add sanitycheck
Browse files Browse the repository at this point in the history
When closing with EXIT-Button before MessageBox has been closed,
it will result in a GS due to an AttributeError for self.mbox.

Signed-off-by: MiLo <milo-software@users.sourceforge.net>
  • Loading branch information
daddelfalk authored and MiLo committed Mar 12, 2012
1 parent 72304aa commit 4bb0bd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PLi/SoftcamSetup/src/Sc.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ def doStart(self):
if "s" in self.what:
self.softcam.select(self.softcams.value)
self.softcam.command('start')
self.mbox.close()
if self.mbox:
self.mbox.close()
self.close()
self.session.nav.playService(self.oldref)
del self.oldref
Expand Down

0 comments on commit 4bb0bd2

Please sign in to comment.