ide: don't auto save current values of object inspector if selection was not changed but some selection properties was changed (fixes part of bug #0010331)

git-svn-id: trunk@18626 -
This commit is contained in:
paul 2009-02-10 04:14:54 +00:00
parent e14c92e885
commit 0d0cb8c4f7

View File

@ -11691,7 +11691,8 @@ end;
procedure TMainIDE.OnControlSelectionPropsChanged(Sender: TObject);
begin
if (TheControlSelection=nil) or (FormEditor1=nil) then exit;
ObjectInspector1.SaveChanges;
if not TheControlSelection.Equals(ObjectInspector1.Selection) then
ObjectInspector1.SaveChanges;
ObjectInspector1.RefreshPropertyValues;
end;