diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-04-19 20:33:01 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-04-19 20:33:01 +0000 |
| commit | 2b76c5fd83d27c2485609413f4392eb35af10912 (patch) | |
| tree | b7639b2a80a629a85cade073b0ebd287a9f578a7 /mytest.py | |
| parent | ceebb28346d39f3c18f5fdc47fd84f48a207589a (diff) | |
| download | enigma2-2b76c5fd83d27c2485609413f4392eb35af10912.tar.gz enigma2-2b76c5fd83d27c2485609413f4392eb35af10912.zip | |
fix returning screen in openWithCallback
re-add close assertion
Diffstat (limited to 'mytest.py')
| -rw-r--r-- | mytest.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -250,6 +250,7 @@ class Session: def openWithCallback(self, callback, screen, *arguments, **kwargs): dlg = self.open(screen, *arguments, **kwargs) dlg.callback = callback + return dlg def open(self, screen, *arguments, **kwargs): if len(self.dialog_stack) and not self.in_exec: @@ -278,7 +279,7 @@ class Session: # after close of the top dialog, the underlying will # gain focus again (for a short time), thus triggering # the onExec, which opens the dialog again, closing the loop. - # assert screen == self.current_dialog + assert screen == self.current_dialog self.current_dialog.returnValue = retval self.delay_timer.start(0, 1) |
