IDE: always set LCLWidgetType

git-svn-id: trunk@29190 -
This commit is contained in:
mattias 2011-01-24 23:29:44 +00:00
parent 33eff14728
commit 27b833a99b
2 changed files with 3 additions and 1 deletions

View File

@ -1804,7 +1804,7 @@ begin
s:=GetDefaultTargetCPU;
Result.Values['TargetCPU']:=s;
end;
if not Result.IsDefined('LCLWidgetType') then begin
if Result.Values['LCLWidgetType']='' then begin
Result.Values['LCLWidgetType']:=
Project1.CompilerOptions.GetEffectiveLCLWidgetType;
end;

View File

@ -5896,6 +5896,8 @@ begin
Result:=inherited GetEffectiveLCLWidgetType
else
Result:=LCLPlatformDirNames[lpNoGUI];
if (Result='') or (SysUtils.CompareText(Result,'default')=0) then
Result:= LCLPlatformDirNames[GetDefaultLCLWidgetType];
end;
class function TProjectCompilerOptions.GetInstance: TAbstractIDEOptions;