Fix setting wxPG_PROP_STRING_PASSWORD attribute
For built-in attributes (like wxPG_PROP_STRING_PASSWORD) wxPGProperty::DoSetAttribute() should return true to give the option (controlled by wxPG_EX_WRITEONLY_BUILTIN_ATTRIBUTES style) to prevent the attribute from being stored into property's attribute storage.
This commit is contained in:
@@ -145,9 +145,9 @@ bool wxStringProperty::DoSetAttribute( const wxString& name, wxVariant& value )
|
||||
m_flags &= ~(wxPG_PROP_PASSWORD);
|
||||
if ( value.GetLong() ) m_flags |= wxPG_PROP_PASSWORD;
|
||||
RecreateEditor();
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user