From 54475ce18e43482b2ec1a150f7fa07c3464ec6d2 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 26 Mar 2009 17:10:17 +0100 Subject: [PATCH] don't allow standby when there is no active screen --- mytest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mytest.py b/mytest.py index b58ec2d..1d9594a 100755 --- a/mytest.py +++ b/mytest.py @@ -376,7 +376,7 @@ class PowerKey: self.standby() def standby(self): - if not Screens.Standby.inStandby and self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND: + if not Screens.Standby.inStandby and self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND and self.session.in_exec: self.session.open(Screens.Standby.Standby) profile("Scart") -- 2.7.4