From d99a13da1872fe21ab7c8a817d0cdd22aa054545 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 17 Sep 2023 14:17:05 +0200 Subject: [PATCH] Amend c8d4b99559ce8 --- src/frontends/qt/GuiDocument.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp index 96eb0bb876..0084334ef5 100644 --- a/src/frontends/qt/GuiDocument.cpp +++ b/src/frontends/qt/GuiDocument.cpp @@ -1272,7 +1272,7 @@ GuiDocument::GuiDocument(GuiView & lv) // margins marginsModule = new UiWidget(this); - connect(marginsModule->marginCB, SIGNAL(toggled(bool)), + connect(marginsModule->marginCB, SIGNAL(clicked(bool)), this, SLOT(setCustomMargins(bool))); connect(marginsModule->marginCB, SIGNAL(clicked()), this, SLOT(change_adaptor())); @@ -2187,8 +2187,10 @@ void GuiDocument::setMargins() if (extern_geometry) { marginsModule->marginCB->setChecked(false); setCustomMargins(true); - } else + } else { marginsModule->marginCB->setChecked(!bp_.use_geometry); + setCustomMargins(!bp_.use_geometry); + } } -- 2.39.5