From 38dedfe1d99e518909caca5c13c15e7373a431a2 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 26 Jun 2013 12:59:10 -0700 Subject: [PATCH] Only generate fake focus lost events when using the generic implementation --- aegisub/src/auto4_lua_dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/auto4_lua_dialog.cpp b/aegisub/src/auto4_lua_dialog.cpp index 47d81d773..7b16a6fd2 100644 --- a/aegisub/src/auto4_lua_dialog.cpp +++ b/aegisub/src/auto4_lua_dialog.cpp @@ -351,8 +351,10 @@ namespace Automation4 { bool TransferFromWindow() { wxSpinCtrlDouble *ctrl = static_cast(GetWindow()); +#ifndef wxHAS_NATIVE_SPINCTRLDOUBLE wxFocusEvent evt; ctrl->OnTextLostFocus(evt); +#endif *value = ctrl->GetValue(); return true; }