mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 01:57:57 +02:00
PoChecker: save and restore LangFilter.ItemIndex.
(Sorry for previous commit, it was by accident (pressing wrog key in console), which also explains the wrong commit-message.) git-svn-id: trunk@46511 -
This commit is contained in:
parent
09a85e4fc9
commit
f50b3f0ecd
@ -127,6 +127,7 @@
|
||||
<Filename Value="..\pocheckermemodlg.pp"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<ComponentName Value="MemoForm"/>
|
||||
<HasResources Value="True"/>
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
<UnitName Value="pocheckermemodlg"/>
|
||||
</Unit9>
|
||||
|
@ -250,6 +250,11 @@ end;
|
||||
|
||||
procedure TPoCheckerForm.LangFilterChange(Sender: TObject);
|
||||
begin
|
||||
//This looks silly, but it makes that ItemIndex has the right value
|
||||
//in OnDestroy when you dropdown and change the filter, and then close
|
||||
//the form and no call to ItemIndex was made after changing the filter....
|
||||
//If someone figures out why, or has a better solution: please implement that
|
||||
LangFilter.ItemIndex;
|
||||
end;
|
||||
|
||||
|
||||
@ -740,6 +745,7 @@ var
|
||||
begin
|
||||
FPoCheckerSettings.SelectDirectoryFilename := SelectDirectoryDialog.Filename;
|
||||
FPoCheckerSettings.OpenDialogFilename := OpenDialog.FileName;
|
||||
FPoCheckerSettings.LangFilterIndex := LangFilter.ItemIndex;
|
||||
FPoCheckerSettings.TestTypes := GetTestTypesFromListBox;
|
||||
FPoCheckerSettings.TestOptions := GetTestOptions;
|
||||
FPoCheckerSettings.MainFormWindowState := WindowState;
|
||||
|
Loading…
Reference in New Issue
Block a user