Maintain default status for ref dialog

Part of #11417
This commit is contained in:
Juergen Spitzmueller 2018-12-19 11:09:32 +01:00
parent 2dcb730026
commit 6dce63496d

View 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);
}