mirror of https://github.com/odrling/Aegisub
Only generate fake focus lost events when using the generic implementation
This commit is contained in:
parent
1adae3160c
commit
38dedfe1d9
|
@ -351,8 +351,10 @@ namespace Automation4 {
|
|||
bool TransferFromWindow()
|
||||
{
|
||||
wxSpinCtrlDouble *ctrl = static_cast<wxSpinCtrlDouble*>(GetWindow());
|
||||
#ifndef wxHAS_NATIVE_SPINCTRLDOUBLE
|
||||
wxFocusEvent evt;
|
||||
ctrl->OnTextLostFocus(evt);
|
||||
#endif
|
||||
*value = ctrl->GetValue();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue