git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9543a08
)
fix currentCursorSelectable for multi content lists
author
Felix Domke
<tmbinc@elitedvb.net>
Mon, 27 Feb 2006 22:41:54 +0000
(22:41 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Mon, 27 Feb 2006 22:41:54 +0000
(22:41 +0000)
lib/gui/elistboxcontent.cpp
patch
|
blob
|
history
diff --git
a/lib/gui/elistboxcontent.cpp
b/lib/gui/elistboxcontent.cpp
index b4c8080976c0573d1d6ab78acaed706fd8b40e88..cec1ea8c2f0b5a84a3e3a95e07b52d0248cf2b28 100644
(file)
--- a/
lib/gui/elistboxcontent.cpp
+++ b/
lib/gui/elistboxcontent.cpp
@@
-598,20
+598,17
@@
error_out:
int eListboxPythonMultiContent::currentCursorSelectable()
{
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 (m_list && cursorValid())
{
PyObject *item = PyList_GET_ITEM(m_list, m_cursor);
-
if (PyList_Check(item))
if (PyList_Check(item))
- {
- item = PyList_GET_ITEM(item, 0);
- if (PyTuple_Check(item))
+ if (PyList_Check(item))
{
{
- item = Py
Tuple
_GET_ITEM(item, 0);
+ item = Py
List
_GET_ITEM(item, 0);
if (item != Py_None)
return 1;
}
if (item != Py_None)
return 1;
}
- }
}
return 0;
}
}
return 0;
}