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.
This commit is contained in:
Enrico Forestieri 2017-06-12 11:54:59 +02:00
parent 5fda4e85c7
commit 887445537a

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