Make pages per page disabled when not supported

This commit is contained in:
Anton Thomasson 2021-07-31 12:35:41 +02:00
parent dd5cf63368
commit 6eb71b7ae6

View file

@ -125,7 +125,7 @@ Page {
tag: IppMsg.Integer tag: IppMsg.Integer
name: "number-up" name: "number-up"
prettyName: qsTr("Pages per page") prettyName: qsTr("Pages per page")
valid: !Mimer.isImage(selectedFileType) valid: _valid && !Mimer.isImage(selectedFileType)
DependentOn { DependentOn {
target: transferFormatSetting target: transferFormatSetting
values: [Mimer.PDF, Mimer.Postscript] values: [Mimer.PDF, Mimer.Postscript]