mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
5fda4e85c7
commit
887445537a
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user