ecere/gui: Not assigning documentID anymore to saved documents (Fixes first untitled...
authorJerome St-Louis <jerome@ecere.com>
Sun, 26 Feb 2012 14:51:35 +0000 (09:51 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 1 Mar 2012 04:53:38 +0000 (23:53 -0500)
ecere/src/gui/Window.ec

index c376cfc..e1dab10 100644 (file)
@@ -5867,7 +5867,8 @@ private:
 
       for(child = children.first; child; child = child.next)
       {
-         if(child.style.isDocument)
+         // TO CHECK: Do we want a documentID when we already have a file name?
+         if(child.style.isDocument && !child.fileName)
          {
             if(child.documentID-1 > size - 2)
             {