aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/ewidget.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-12-17 16:00:50 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-12-17 16:00:50 +0000
commit7eab308715ea1130166915574e3b691e08eb4482 (patch)
tree0068c4e8eb07c80cade3408d2fd2b10baccdf012 /lib/gui/ewidget.cpp
parent456ac28d25e861b4e661c88d573e3258a53d67a5 (diff)
downloadenigma2-7eab308715ea1130166915574e3b691e08eb4482.tar.gz
enigma2-7eab308715ea1130166915574e3b691e08eb4482.zip
GUI: child windows will no long be removed on parent destroy. listbox/window now destroy their private parents. python does no longer use thisown = 0.
Diffstat (limited to 'lib/gui/ewidget.cpp')
-rw-r--r--lib/gui/ewidget.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/gui/ewidget.cpp b/lib/gui/ewidget.cpp
index 023caa6a..6f7fa91b 100644
--- a/lib/gui/ewidget.cpp
+++ b/lib/gui/ewidget.cpp
@@ -205,12 +205,11 @@ eWidget::~eWidget()
m_parent = 0;
- /* destroy all childs */
+ /* tell all childs that the parent is not anymore existing */
ePtrList<eWidget>::iterator i(m_childs.begin());
while (i != m_childs.end())
{
- (*i)->m_parent = 0;
- delete *i;
+ (*i)->parentRemoved();
i = m_childs.erase(i);
}
}
@@ -275,6 +274,11 @@ void eWidget::recalcClipRegionsWhenVisible()
} while(1);
}
+void eWidget::parentRemoved()
+{
+ m_parent = 0;
+}
+
int eWidget::event(int event, void *data, void *data2)
{
switch (event)