From: Enrico Forestieri Date: Mon, 12 Jun 2017 09:54:59 +0000 (+0200) Subject: Switch parameters validation even before applying the changes X-Git-Tag: 2.3.0beta1~259 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=887445537af2a97ee0d248eee163f34a7b525ab8;p=features.git Switch parameters validation even before applying the changes In the document settings allow to immediately switch from one package to the other for parameters validation without the need of first applying the changes. --- diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index cba3f3e025..e5f51568a3 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -1551,7 +1551,9 @@ QString GuiDocument::validateListingsParameters() if (listingsModule->bypassCB->isChecked()) return QString(); string params = fromqstr(listingsModule->listingsED->toPlainText()); - return toqstr(InsetListingsParams(params).validate()); + InsetListingsParams lstparams(params); + lstparams.setMinted(listingsModule->mintedCB->isChecked()); + return toqstr(lstparams.validate()); }