Added wxPropertyGrid::WasValueChangedInEvent(), added code to avoid showing colour picker dialog twice when 'Custom' colour was picked from drop-down list
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1259,7 +1259,7 @@ bool wxSystemColourProperty::OnEvent( wxPropertyGrid* propgrid,
|
||||
askColour = true;
|
||||
}
|
||||
|
||||
if ( askColour )
|
||||
if ( askColour && !propgrid->WasValueChangedInEvent() )
|
||||
{
|
||||
// We need to handle button click in case editor has been
|
||||
// switched to one that has wxButton as well.
|
||||
|
||||
Reference in New Issue
Block a user