Screen: clear all elements on close
[enigma2.git] / mytest.py
index 42bcd3e..242f19e 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)