From 5ce14dad2a109815de02de3ad6043b26ec60877c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 5 Oct 2018 20:17:55 +0100 Subject: [PATCH] Flush out whatever the dialog-is-closing guard was for. The guard isn't working on GTK (causing eval not to happen on a kill focus), and I can't remember what issue I put it in to solve. I've done a bunch of testing and it appears that we don't need it, although I'm sure I put it in for something.... Fixes: lp:1793911 * https://bugs.launchpad.net/kicad/+bug/1793911 --- common/widgets/unit_binder.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/widgets/unit_binder.cpp b/common/widgets/unit_binder.cpp index fd408b2a5d..41a6d9df84 100644 --- a/common/widgets/unit_binder.cpp +++ b/common/widgets/unit_binder.cpp @@ -94,10 +94,6 @@ void UNIT_BINDER::onSetFocus( wxFocusEvent& aEvent ) void UNIT_BINDER::onKillFocus( wxFocusEvent& aEvent ) { - // The ship is going down; no need to do anything... - if( !aEvent.GetWindow() || aEvent.GetWindow()->GetId() == wxID_CANCEL ) - return; - if( m_allowEval ) evaluate();