mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
parent
461cb03b67
commit
b95262f487
@ -251,7 +251,8 @@ void GuiRef::updateContents()
|
||||
nameL->setHidden(!nameAllowed());
|
||||
|
||||
// restore type settings for new insets
|
||||
if (params_["reference"].empty())
|
||||
bool const new_inset = params_["reference"].empty();
|
||||
if (new_inset)
|
||||
typeCO->setCurrentIndex(orig_type);
|
||||
else
|
||||
typeCO->setCurrentIndex(InsetRef::getType(params_.getCmdName()));
|
||||
@ -281,7 +282,9 @@ void GuiRef::updateContents()
|
||||
active_buffer_ = thebuffer;
|
||||
|
||||
updateRefs();
|
||||
bc().setValid(false);
|
||||
// Activate OK/Apply buttons if the users inserts a new ref
|
||||
// and we have a valid pre-setting.
|
||||
bc().setValid(isValid() && new_inset);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user