commit 6dce63496d8bfd91aec935b64954e4f91102b5d4
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Wed Dec 19 11:09:32 2018 +0100

    Maintain default status for ref dialog
    
    Part of #11417
---
 src/frontends/qt4/GuiRef.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp
index 5d46a47..94d2b5a 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);
 }
 
 

Reply via email to