Do not silently dismiss unapplied document changes when adding module

Part of #9356
This commit is contained in:
Juergen Spitzmueller 2014-12-21 11:47:59 +01:00
parent 41c35476e5
commit 276fa4825d

View File

@ -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();
}