ide: Fix to update project file dialog directory when adding project to the workspace
authorJerome St-Louis <jerome@ecere.com>
Mon, 21 Nov 2011 17:34:56 +0000 (12:34 -0500)
committerJerome St-Louis <jerome@ecere.com>
Mon, 21 Nov 2011 17:34:56 +0000 (12:34 -0500)
ide/src/ide.ec

index 7d105c7..7281a2e 100644 (file)
@@ -1667,6 +1667,13 @@ class IDE : Window
                      workspace.Save();
                      findInFilesDialog.AddProjectItem(prj);
                      projectView.ProjectUpdateMakefileForAllConfigs(prj, true, true);
+
+                     {
+                        char location[MAX_LOCATION];
+                        StripLastDirectory(prj.topNode.path, location);
+                        ChangeProjectFileDialogDirectory(location);
+                     }
+
                      // projectView is associated with the main project and not with the one just added but
                      return projectView; // just to let the caller know something was opened
                   }