mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Do not silently dismiss unapplied document changes when adding module
Part of #9356
This commit is contained in:
parent
41c35476e5
commit
276fa4825d
@ -2377,6 +2377,16 @@ void GuiDocument::modulesToParams(BufferParams & bp)
|
||||
void GuiDocument::modulesChanged()
|
||||
{
|
||||
modulesToParams(bp_);
|
||||
|
||||
if (applyPB->isEnabled()) {
|
||||
int const ret = Alert::prompt(_("Unapplied changes"),
|
||||
_("Some changes in the dialog were not yet applied.\n"
|
||||
"If you do not apply now, they will be lost after this action."),
|
||||
1, 1, _("&Apply"), _("&Dismiss"));
|
||||
if (ret == 0)
|
||||
applyView();
|
||||
}
|
||||
|
||||
bp_.makeDocumentClass();
|
||||
paramsToDialog();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user