]> git.lyx.org Git - lyx.git/commitdiff
Switch parameters validation even before applying the changes
authorEnrico Forestieri <forenr@lyx.org>
Mon, 12 Jun 2017 09:54:59 +0000 (11:54 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 12 Jun 2017 09:54:59 +0000 (11:54 +0200)
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.

src/frontends/qt4/GuiDocument.cpp

index cba3f3e025f5d5c90afeb54ac2113b6c0c5f6819..e5f51568a32720f8c30ad05f3c5993f2f462281f 100644 (file)
@@ -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());
 }