diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-12-14 17:07:42 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-12-14 17:07:42 +0000 |
| commit | 55c2a88ecd94a2eb6aa00f1227912fcd2659932b (patch) | |
| tree | 785306edb681cfa959940892003b3ebf408be9f8 /lib/gui | |
| parent | acf619a3c304992a7ec093cd95fdd6c0805cca66 (diff) | |
| download | enigma2-55c2a88ecd94a2eb6aa00f1227912fcd2659932b.tar.gz enigma2-55c2a88ecd94a2eb6aa00f1227912fcd2659932b.zip | |
add possibility to get a dict with transponderdata for servicerefs
Diffstat (limited to 'lib/gui')
| -rw-r--r-- | lib/gui/elistboxcontent.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index d4272a0a..621fa5cc 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -195,10 +195,8 @@ void eListboxPythonStringContent::setList(ePyObject list) PyObject *eListboxPythonStringContent::getCurrentSelection() { if (!(m_list && cursorValid())) - { - Py_INCREF(Py_None); - return Py_None; - } + Py_RETURN_NONE; + ePyObject r = PyList_GET_ITEM(m_list, m_cursor); Py_XINCREF(r); return r; |
