From 6dce63496d8bfd91aec935b64954e4f91102b5d4 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 19 Dec 2018 11:09:32 +0100 Subject: [PATCH] Maintain default status for ref dialog Part of #11417 --- src/frontends/qt4/GuiRef.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp index 5d46a471c7..94d2b5a223 100644 --- a/src/frontends/qt4/GuiRef.cpp +++ b/src/frontends/qt4/GuiRef.cpp @@ -385,6 +385,8 @@ void GuiRef::updateContents() // Activate OK/Apply buttons if the users inserts a new ref // and we have a valid pre-setting. bc().setValid(isValid() && new_inset); + // Somewhere in the chain this can lose default status (#11417) + buttonBox->button(QDialogButtonBox::Ok)->setDefault(true); } -- 2.39.5