don't make read-only text controls editable when enabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d476275306
commit
81c882b613
@ -1293,14 +1293,7 @@ bool wxTextCtrl::Enable( bool enable )
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( IsMultiLine() )
|
||||
{
|
||||
SetEditable( enable );
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_widget_set_sensitive( m_text, enable );
|
||||
}
|
||||
gtk_widget_set_sensitive( m_text, enable );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user