diff --git a/src/ce_dubprojeditor.pas b/src/ce_dubprojeditor.pas index c40b5389..3df369c0 100644 --- a/src/ce_dubprojeditor.pas +++ b/src/ce_dubprojeditor.pas @@ -221,8 +221,8 @@ begin 1: tpe := TJSONtype.jtObject; else tpe := TJSONtype.jtString; end; - if (tpe in [jtObject, jtString]) and (fEdName.Text = '') then - dlgOkError('This property requires a name') + if fEdName.Enabled and (fEdName.Text = '') then + dlgOkError('New properties require a name') else begin fEvent(fEdName.Text, tpe);