aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/ewidget.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-04-03 12:00:39 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-04-03 12:00:39 +0000
commit7c4eec27070e8c2cb925117caaf7e9c2c2a754e9 (patch)
treebd57e36684592e00a9f21062b97866c5e0b2c25d /lib/gui/ewidget.cpp
parent7899a298555ff5b350f39b359e02dce3e2ada8b4 (diff)
downloadenigma2-7c4eec27070e8c2cb925117caaf7e9c2c2a754e9.tar.gz
enigma2-7c4eec27070e8c2cb925117caaf7e9c2c2a754e9.zip
catch buggy python code
Diffstat (limited to 'lib/gui/ewidget.cpp')
-rw-r--r--lib/gui/ewidget.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/gui/ewidget.cpp b/lib/gui/ewidget.cpp
index 3bc6e663..cbc1a8c0 100644
--- a/lib/gui/ewidget.cpp
+++ b/lib/gui/ewidget.cpp
@@ -100,16 +100,25 @@ void eWidget::show()
{
if (m_vis & wVisShow)
return;
-
- m_vis |= wVisShow;
+ m_vis |= wVisShow;
+
/* TODO: optimize here to only recalc what's required. possibly merge with hide. */
eWidget *root = this;
ePoint abspos = position();
while (root && !root->m_desktop)
{
root = root->m_parent;
- assert(root);
+ if (root)
+ {
+ /* oops: our root widget does not have a desktop associated.
+ probably somebody already erased the root, but tries some
+ operations on a child window.
+
+ ignore them for now. */
+ /* assert(root); */
+ return;
+ }
abspos += root->position();
}