]> git.lyx.org Git - features.git/commitdiff
Amend c8d4b99559ce8
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 17 Sep 2023 12:17:05 +0000 (14:17 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 17 Sep 2023 12:17:05 +0000 (14:17 +0200)
src/frontends/qt/GuiDocument.cpp

index 96eb0bb876773e449c62124f1563e916a149f6b5..0084334ef57be6a553b32dd51b0deda3f54e6cde 100644 (file)
@@ -1272,7 +1272,7 @@ GuiDocument::GuiDocument(GuiView & lv)
 
        // margins
        marginsModule = new UiWidget<Ui::MarginsUi>(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);
+       }
 }