Fix crashes with readonly combobox under wxQT
This commit is contained in:
@@ -185,6 +185,8 @@ void wxComboBox::SetActualValue(const wxString &value)
|
|||||||
void wxComboBox::SetValue(const wxString& value)
|
void wxComboBox::SetValue(const wxString& value)
|
||||||
{
|
{
|
||||||
SetActualValue( value );
|
SetActualValue( value );
|
||||||
|
|
||||||
|
if ( !HasFlag(wxCB_READONLY) )
|
||||||
SetInsertionPoint( 0 );
|
SetInsertionPoint( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -249,7 +251,9 @@ void wxComboBox::Dismiss()
|
|||||||
|
|
||||||
void wxComboBox::Clear()
|
void wxComboBox::Clear()
|
||||||
{
|
{
|
||||||
|
if ( !HasFlag(wxCB_READONLY) )
|
||||||
wxTextEntry::Clear();
|
wxTextEntry::Clear();
|
||||||
|
|
||||||
wxItemContainer::Clear();
|
wxItemContainer::Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user