Printing: disable template editing for statistics templates
Editing statistics templates is not supported now, as there is no custom template for statistics printing, so disable the template edit area. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
This commit is contained in:
parent
b6d3735204
commit
f45fdc8660
@ -35,6 +35,9 @@ TemplateEdit::TemplateEdit(QWidget *parent, struct print_options *printOptions,
|
||||
|
||||
ui->plainTextEdit->setPlainText(grantlee_template);
|
||||
editingCustomColors = false;
|
||||
if (printOptions->type == print_options::STATISTICS) {
|
||||
ui->plainTextEdit->setEnabled(false);
|
||||
}
|
||||
updatePreview();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user