aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-02-27 22:41:54 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-02-27 22:41:54 +0000
commit11ba2aae74be4daa35434294fab8dda86fe78d6c (patch)
treeea1b499153329c061b850d4a47b3e17722bbc408
parent9543a08546d7b46e3da668bfbd72e4324dd4c6e6 (diff)
downloadenigma2-11ba2aae74be4daa35434294fab8dda86fe78d6c.tar.gz
enigma2-11ba2aae74be4daa35434294fab8dda86fe78d6c.zip
fix currentCursorSelectable for multi content lists
-rw-r--r--lib/gui/elistboxcontent.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp
index b4c80809..cec1ea8c 100644
--- a/lib/gui/elistboxcontent.cpp
+++ b/lib/gui/elistboxcontent.cpp
@@ -598,20 +598,17 @@ error_out:
int eListboxPythonMultiContent::currentCursorSelectable()
{
+ /* each list-entry is a list of tuples. if the first of these is none, it's not selectable */
if (m_list && cursorValid())
{
PyObject *item = PyList_GET_ITEM(m_list, m_cursor);
-
if (PyList_Check(item))
- {
- item = PyList_GET_ITEM(item, 0);
- if (PyTuple_Check(item))
+ if (PyList_Check(item))
{
- item = PyTuple_GET_ITEM(item, 0);
+ item = PyList_GET_ITEM(item, 0);
if (item != Py_None)
return 1;
}
- }
}
return 0;
}