Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
907f676
)
ide/ecere/Window/: Fix for multiple file close confirmation dialogs since new mainfra...
author
Jerome St-Louis
<jerome@ecere.com>
Tue, 6 Mar 2012 12:54:02 +0000
(07:54 -0500)
committer
Jerome St-Louis
<jerome@ecere.com>
Tue, 6 Mar 2012 12:54:02 +0000
(07:54 -0500)
ecere/src/gui/Window.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/Window.ec
b/ecere/src/gui/Window.ec
index
6be0f73
..
5044c23
100644
(file)
--- a/
ecere/src/gui/Window.ec
+++ b/
ecere/src/gui/Window.ec
@@
-7133,12
+7133,15
@@
public:
if(result)
{
for(slave = slaves.first; slave; slave = slave.next)
- if(!((Window)slave.data).CloseConfirmation(true))
+ {
+ Window w = slave.data;
+ if((w.parent == this || !w.IsDescendantOf(this)) && !w.CloseConfirmation(true))
{
// ((Window)slave.data).CloseConfirmation(true);
result = false;
break;
}
+ }
}
if(result)