Skip to content

Commit

Permalink
eventview fix bsod
Browse files Browse the repository at this point in the history
13:00:31.2917 { D }   File "/usr/lib/enigma2/python/Screens/EventView.py", line 188, in finishedAdd
13:00:31.2926 { D } NameError: global name 'TimerSanityConflict' is not defined
  • Loading branch information
atvcaptain committed Jun 19, 2017
1 parent d1dd6c2 commit 5ac7690
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/python/Screens/EventView.py
Expand Up @@ -20,10 +20,6 @@
from Screens.TimerEntry import TimerEntry
from Plugins.Plugin import PluginDescriptor
from Tools.BoundFunction import boundFunction
try:
from Screens.TimerEdit import TimerSanityConflict
except: # maybe already been imported from another module
pass

class EventViewContextMenu(Screen):
def __init__(self, session, menu):
Expand Down Expand Up @@ -185,6 +181,10 @@ def finishedAdd(self, answer):
if change_time:
simulTimerList = self.session.nav.RecordTimer.record(entry)
if simulTimerList is not None:
try:
from Screens.TimerEdit import TimerSanityConflict
except: # maybe already been imported from another module
pass
self.session.openWithCallback(self.finishSanityCorrection, TimerSanityConflict, simulTimerList)
self["key_green"].setText(_("Change timer"))
self.key_green_choice = self.REMOVE_TIMER
Expand Down

0 comments on commit 5ac7690

Please sign in to comment.