mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 12:16:18 +02:00
OI: clearing combobox items on error
git-svn-id: trunk@18308 -
This commit is contained in:
parent
f46d70252b
commit
306e5ea3d4
@ -942,13 +942,13 @@ begin
|
||||
ValueComboBox.Items.Assign(FNewComboBoxItems);
|
||||
end;
|
||||
//debugln('TOICustomPropertyGrid.FillComboboxItems "',FNewComboBoxItems.Text,'" Cur="',ValueComboBox.Items.Text,'" ValueComboBox.Items.Count=',dbgs(ValueComboBox.Items.Count));
|
||||
FreeAndNil(FNewComboBoxItems);
|
||||
end else begin
|
||||
ValueComboBox.Items.Text:='';
|
||||
ValueComboBox.Items.Clear;
|
||||
//debugln('TOICustomPropertyGrid.FillComboboxItems FNewComboBoxItems=nil Cur="',ValueComboBox.Items.Text,'" ValueComboBox.Items.Count=',dbgs(ValueComboBox.Items.Count));
|
||||
end;
|
||||
finally
|
||||
FreeAndNil(FNewComboBoxItems);
|
||||
ValueComboBox.Items.EndUpdate;
|
||||
if ExcludeUpdateFlag then
|
||||
Exclude(FStates,pgsUpdatingEditControl);
|
||||
|
Loading…
Reference in New Issue
Block a user