IDE: fixed restarting lazarus

git-svn-id: trunk@15778 -
This commit is contained in:
vincents 2008-07-14 11:24:07 +00:00
parent 23d97dd378
commit 91146521fe

View File

@ -9441,14 +9441,14 @@ procedure TMainIDE.DoRestart;
' --lazarus-pid='+IntToStr(GetProcessID) + ' ' +
GetCommandLineParameters(Params, False);
//DebugLn('CommandLine 1 : %s', [StartLazProcess.CommandLine]);
DebugLn('CommandLine 1 : %s', [StartLazProcess.CommandLine]);
if (pos(PrimaryConfPathOptLong, StartLazProcess.CommandLine) = 0) and
(pos(PrimaryConfPathOptShort, StartLazProcess.CommandLine) = 0) then
StartLazProcess.CommandLine := StartLazProcess.CommandLine +
' "' + PrimaryConfPathOptLong + '='+GetPrimaryConfigPath+'"';
' "' + PrimaryConfPathOptLong + GetPrimaryConfigPath+'"';
//DebugLn('CommandLine 2 : %s', [StartLazProcess.CommandLine]);
DebugLn('CommandLine 2 : %s', [StartLazProcess.CommandLine]);
StartLazProcess.Execute;
finally