Gui: [skip ci] fix bug in Placement dialog when leaving with Esc

This commit is contained in:
wmayer
2020-03-20 13:34:48 +01:00
parent 9defe5440e
commit 32d8718639

View File

@@ -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();
}