git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add preStart event and use it to load the cutlist
[enigma2.git]
/
lib
/
python
/
connections.cpp
diff --git
a/lib/python/connections.cpp
b/lib/python/connections.cpp
index 3c31baf853f4bf0660bc89375a19ca27b7a6b789..c0d38f8931a38c8a3fc1786ec9a60f6087f2d3ef 100644
(file)
--- a/
lib/python/connections.cpp
+++ b/
lib/python/connections.cpp
@@
-23,10
+23,18
@@
void PSignal::callPython(ePyObject tuple)
PyObject *PSignal::get()
{
if (!m_list)
PyObject *PSignal::get()
{
if (!m_list)
- {
m_list = PyList_New(0);
m_list = PyList_New(0);
- Py_INCREF(m_list);
- }
Py_INCREF(m_list);
return m_list;
}
Py_INCREF(m_list);
return m_list;
}
+
+PyObject *PSignal::getSteal(bool clear)
+{
+ if (clear)
+ {
+ ePyObject ret = m_list;
+ m_list = (PyObject*)0;
+ return ret;
+ }
+ return m_list;
+}