From 55c2a88ecd94a2eb6aa00f1227912fcd2659932b Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 14 Dec 2006 17:07:42 +0000 Subject: add possibility to get a dict with transponderdata for servicerefs --- lib/gui/elistboxcontent.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/gui/elistboxcontent.cpp') 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; -- cgit v1.2.3