From: Juergen Spitzmueller Date: Wed, 19 Dec 2018 10:09:32 +0000 (+0100) Subject: Maintain default status for ref dialog X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3c4bb9e6dfb9d7f9674af61de6e86927a985e0ba;p=features.git Maintain default status for ref dialog Part of #11417 --- 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); }