Screen: clear all elements on close
[enigma2.git] / mytest.py
index 42bcd3eefe17fa91ae139b4581ec29afc5634ebd..242f19e56ccfa1f073a32c3cb0981249c1a2cef2 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -75,8 +75,6 @@ class Session:
 
                if self.currentDialog.isTmp:
                        self.currentDialog.doClose()
-
-                       del self.currentDialog.instance
 #                      dump(self.currentDialog)
                        del self.currentDialog
                else:
@@ -121,6 +119,9 @@ class Session:
                        quitMainloop(5)
                        print '-'*60
                
+               if dlg is None:
+                       return
+
                # read skin data
                readSkin(dlg, None, dlg.skinName, self.desktop)