From 887445537af2a97ee0d248eee163f34a7b525ab8 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 12 Jun 2017 11:54:59 +0200 Subject: [PATCH] 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. --- src/frontends/qt4/GuiDocument.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()); }