Reset the flag only if it is necessary
This commit is contained in:
@@ -142,8 +142,10 @@ bool wxStringProperty::DoSetAttribute( const wxString& name, wxVariant& value )
|
|||||||
{
|
{
|
||||||
if ( name == wxPG_STRING_PASSWORD )
|
if ( name == wxPG_STRING_PASSWORD )
|
||||||
{
|
{
|
||||||
|
if ( value.GetLong() )
|
||||||
|
m_flags |= wxPG_PROP_PASSWORD;
|
||||||
|
else
|
||||||
m_flags &= ~(wxPG_PROP_PASSWORD);
|
m_flags &= ~(wxPG_PROP_PASSWORD);
|
||||||
if ( value.GetLong() ) m_flags |= wxPG_PROP_PASSWORD;
|
|
||||||
RecreateEditor();
|
RecreateEditor();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user