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()
|
bool TransferFromWindow()
|
||||||
{
|
{
|
||||||
wxSpinCtrlDouble *ctrl = static_cast<wxSpinCtrlDouble*>(GetWindow());
|
wxSpinCtrlDouble *ctrl = static_cast<wxSpinCtrlDouble*>(GetWindow());
|
||||||
|
#ifndef wxHAS_NATIVE_SPINCTRLDOUBLE
|
||||||
wxFocusEvent evt;
|
wxFocusEvent evt;
|
||||||
ctrl->OnTextLostFocus(evt);
|
ctrl->OnTextLostFocus(evt);
|
||||||
|
#endif
|
||||||
*value = ctrl->GetValue();
|
*value = ctrl->GetValue();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue