]> git.lyx.org Git - features.git/commitdiff
Maintain default status for ref dialog
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 19 Dec 2018 10:09:32 +0000 (11:09 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 19 Dec 2018 10:09:32 +0000 (11:09 +0100)
Part of #11417

src/frontends/qt4/GuiRef.cpp

index 5d46a471c710bb980c0c062085c8f3a480d405b5..94d2b5a2234c00a575c4f5a58ac681d4da65a22b 100644 (file)
@@ -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);
 }