From 71222456a49d1d74d767ef702ef7cecf2f58154a Mon Sep 17 00:00:00 2001 From: mattias Date: Sun, 2 Aug 2009 21:29:55 +0000 Subject: [PATCH] IDE: removed SetCurrentDir from save/open project git-svn-id: trunk@21080 - --- ide/main.pp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/ide/main.pp b/ide/main.pp index 9478fb1337..1776ae43ae 100644 --- a/ide/main.pp +++ b/ide/main.pp @@ -6789,14 +6789,6 @@ begin EnvironmentOptions.AddToRecentProjectFiles(NewLPIFilename); SetRecentProjectFilesMenu; - // switch working directory - try - SetCurrentDirUTF8(ExtractFilePath(NewLPIFilename)); - except - on E: Exception do - DebugLn(['TMainIDE.DoShowSaveProjectAsDialog SetCurrentDirUTF8: ',E.Message]); - end; - // change main source if (Project1.MainUnitID >= 0) then begin @@ -8839,14 +8831,6 @@ begin Result:=DoCloseProject; if Result=mrAbort then exit; - // switch working directory - try - SetCurrentDirUTF8(ExtractFilePath(AFilename)); - except - on E: Exception do - DebugLn(['TMainIDE.DoOpenProjectFile SetCurrentDirUTF8: ',E.Message]); - end; - // create a new project {$IFDEF IDE_VERBOSE} writeln('TMainIDE.DoOpenProjectFile B');