ide/ecere/Window/: Fix for multiple file close confirmation dialogs since new mainfra...
authorJerome St-Louis <jerome@ecere.com>
Tue, 6 Mar 2012 12:54:02 +0000 (07:54 -0500)
committerJerome St-Louis <jerome@ecere.com>
Tue, 6 Mar 2012 12:54:02 +0000 (07:54 -0500)
ecere/src/gui/Window.ec

index 6be0f73..5044c23 100644 (file)
@@ -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)