Remove attributes the correct way
This commit is contained in:
parent
afb8d65ea8
commit
8ae48b83e6
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ Page {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var tmp = jobParams;
|
var tmp = jobParams;
|
||||||
// Varies between documents, would be confusing to save
|
// Varies between documents, would be confusing to save
|
||||||
tmp["page-ranges"] = undefined;
|
delete tmp["page-ranges"];
|
||||||
db.setJobSettings(printer.attrs["printer-uuid"].value, selectedFileType, JSON.stringify(tmp))
|
db.setJobSettings(printer.attrs["printer-uuid"].value, selectedFileType, JSON.stringify(tmp))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue