From: Moritz Venn Date: Sat, 21 Jun 2008 17:13:04 +0000 (+0000) Subject: create initial defaultTimer on __init__ so the plugin won't crash if it lacks a confi... X-Git-Url: http://code.vuplus.com/gitweb/?a=commitdiff_plain;h=3080c057e1fd4f2c8ee3c47269dbf2a643b54fa1;p=vuplus_dvbapp-plugin create initial defaultTimer on __init__ so the plugin won't crash if it lacks a configuration --- diff --git a/autotimer/src/AutoTimer.py b/autotimer/src/AutoTimer.py index be89bbb..44a52f2 100644 --- a/autotimer/src/AutoTimer.py +++ b/autotimer/src/AutoTimer.py @@ -77,6 +77,12 @@ class AutoTimer: self.timers = [] self.configMtime = -1 self.uniqueTimerId = 0 + self.defaultTimer = AutoTimerComponent( + 0, # Id + "", # Name + "", # Match + True # Enabled + ) def readXml(self): # Abort if no config found