Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71be105
)
ecere/gui: Solved a crash on setting parent to null before destroying/destructing
author
Jerome St-Louis
<jerome@ecere.com>
Tue, 24 Jul 2012 20:14:45 +0000
(16:14 -0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Tue, 24 Jul 2012 20:14:45 +0000
(16:14 -0400)
ecere/src/gui/Window.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/Window.ec
b/ecere/src/gui/Window.ec
index
341ccbb
..
f29a65a
100644
(file)
--- a/
ecere/src/gui/Window.ec
+++ b/
ecere/src/gui/Window.ec
@@
-7797,6
+7797,12
@@
public:
parent.childrenOrder.Delete(order);
cycle = null;
order = null;
+ // *** TODO: Added this here to solve crash on setting parent to null before destroying/destructing ***
+ // Should something else be done?
+ if(parent && parent.activeChild == this)
+ parent.activeChild = null;
+ if(parent && parent.activeClient == this)
+ parent.activeClient = null;
//if(created)
{