From 544bb222212fb03b8ac4e607d98b17ffb9b41a7e Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 20 Mar 2020 13:34:48 +0100 Subject: [PATCH] Gui: [skip ci] fix bug in Placement dialog when leaving with Esc --- src/Gui/Placement.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Gui/Placement.cpp b/src/Gui/Placement.cpp index 32de68dcf9..56f84ae3d9 100644 --- a/src/Gui/Placement.cpp +++ b/src/Gui/Placement.cpp @@ -560,6 +560,13 @@ void Placement::reject() /*emit*/ placementChanged(data, true, false); revertTransformation(); + + // One of the quantity spin boxes still can emit a signal when it has the focus + // but its content is not fully updated. + // In order to override again the placement the signalMapper is blocked + // See related forum thread: + // https://forum.freecadweb.org/viewtopic.php?f=3&t=44341#p378659 + QSignalBlocker block(signalMapper); QDialog::reject(); }