ide: Fixed Workspace issues (PathBox, was not saving arguments)
authorJerome St-Louis <jerome@ecere.com>
Thu, 9 Jun 2011 06:08:33 +0000 (02:08 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 9 Jun 2011 06:08:33 +0000 (02:08 -0400)
extras/gui/controls/PathBox.ec
ide/src/project/Workspace.ec

index 7d42dfe..6c3a4df 100644 (file)
@@ -295,7 +295,6 @@ public class DirPath : String
          {
             ListBox lb = (ListBox)((DataBox)parent).parent;
             property::path = browsedPath;
-            modifiedDocument = true;
             if(eClass_IsDerived(lb._class, class(ListBox)))
                lb.StopEditing(true);
          }
@@ -436,6 +435,7 @@ public class PathBox : CommonControl
             browseDialog.master = rootWindow;
             if(browseDialog.Modal())
             {
+               modifiedDocument = true;
                OnPathBrowsed(browseDialog.filePath);
                NotifyModified(master, this);
             }
index a534a5f..fa148c4 100644 (file)
@@ -244,6 +244,10 @@ public:
             }
          }
          
+         file.Printf("\n   Execution Data\n");
+         if(commandLineArgs && commandLineArgs[0])
+            file.Printf("\n      Command Line Arguments = %s\n", commandLineArgs);
+
          file.Printf("\n   Debugger Data\n");
          if(debugDir && debugDir[0])
             file.Printf("\n      Debug Working Directory = %s\n", debugDir);
@@ -638,6 +642,7 @@ public:
 
    ~Workspace()
    {
+      Save();
       timer.Stop();
 
       sourceDirs.Free();