enigma2: remove unneeded patches, add patches to show the ConfigSet help dialog in...
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2 / 0002-config-warn-when-help-is-available-but-session-is-mi.patch
1 From 7cf7071b1f8558c08b2b90ca781c4eeff6d0e862 Mon Sep 17 00:00:00 2001
2 From: reichi <reichi@opendreambox.org>
3 Date: Fri, 29 Sep 2017 10:56:58 +0200
4 Subject: [PATCH 2/3] config: warn when help is available but session is
5  missing
6
7 ---
8  usr/lib/enigma2/python/Components/config.py | 4 ++++
9  1 file changed, 4 insertions(+)
10
11 diff --git a/usr/lib/enigma2/python/Components/config.py b/usr/lib/enigma2/python/Components/config.py
12 index 52e32c6..b9b126c 100644
13 --- a/usr/lib/enigma2/python/Components/config.py
14 +++ b/usr/lib/enigma2/python/Components/config.py
15 @@ -1040,6 +1040,8 @@ class ConfigTextBase(ConfigElement):
16                         self.help_window = session.instantiateDialog(NumericalTextInputHelpDialog, self, zPosition=5000)
17                         self.help_window.neverAnimate()
18                         self.help_window.show()
19 +               else:
20 +                       Log.w("Help dialog skipped - session is None!")
21  
22         def onDeselect(self, session):
23                 self.selected = False
24 @@ -1361,6 +1363,8 @@ class ConfigSet(ConfigElement):
25                         self.help_window = session.instantiateDialog(ConfigSetHelpDialog, self, zPosition=5000)
26                         self.help_window.neverAnimate()
27                         self.help_window.show()
28 +               else:
29 +                       Log.w("Help dialog skipped - session is None!")
30  
31         def onDeselect(self, session):
32                 self.pos = -1
33 -- 
34 2.1.4
35