mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 21:30:35 +02:00
ide: fix setting of incorrect version info language and charset by taka_jp (issue #0015520)
git-svn-id: trunk@23482 -
This commit is contained in:
parent
e25a2cdb71
commit
f576f9dac8
@ -97,6 +97,8 @@ begin
|
||||
end;
|
||||
|
||||
procedure TProjectVersionInfoOptionsFrame.ReadSettings(AOptions: TAbstractIDEOptions);
|
||||
var
|
||||
i : integer;
|
||||
begin
|
||||
FVersionInfo := TProjectVersionInfo((AOptions as TProject).Resources[TProjectVersionInfo]);
|
||||
|
||||
@ -110,12 +112,19 @@ begin
|
||||
|
||||
if FVersionInfo.AutoIncrementBuild then
|
||||
AutomaticallyIncreaseBuildCheckBox.Checked := True;
|
||||
// ComboBox.sort does not change ItemIndex.[Windows]
|
||||
LanguageSelectionComboBox.Items.Assign(MSLanguages);
|
||||
LanguageSelectionComboBox.ItemIndex := MSHexLanguages.IndexOf(FVersionInfo.HexLang);
|
||||
LanguageSelectionComboBox.Sorted := True;
|
||||
i := MSHexLanguages.IndexOf(FVersionInfo.HexLang);
|
||||
if i >= 0 then
|
||||
i := LanguageSelectionComboBox.Items.IndexOf(MSLanguages[i]);
|
||||
LanguageSelectionComboBox.ItemIndex := i;
|
||||
CharacterSetComboBox.Items.Assign(MSCharacterSets);
|
||||
CharacterSetComboBox.ItemIndex := MSHexCharacterSets.IndexOf(FVersionInfo.HexCharSet);
|
||||
CharacterSetComboBox.Sorted := True;
|
||||
i := MSHexCharacterSets.IndexOf(FVersionInfo.HexCharSet);
|
||||
if i >= 0 then
|
||||
i := CharacterSetComboBox.Items.IndexOf(MSCharacterSets[i]);
|
||||
CharacterSetComboBox.ItemIndex := i;
|
||||
DescriptionEdit.Text := FVersionInfo.DescriptionString;
|
||||
CopyrightEdit.Text := FVersionInfo.CopyrightString;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user