mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:23:24 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue