summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-08-21 19:20:43 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-08-22 18:37:48 +0300
commitf45fdc8660f912845f37809cae41e2f3b02bc800 (patch)
tree5e18f30cab6ed6d72182d096e25ba80368c5b212
parentb6d373520457d702f47d6026cea1c8c57c6528c5 (diff)
downloadsubsurface-f45fdc8660f912845f37809cae41e2f3b02bc800.tar.gz
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>
-rw-r--r--qt-ui/templateedit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/templateedit.cpp b/qt-ui/templateedit.cpp
index 3315b12ef..b50338090 100644
--- a/qt-ui/templateedit.cpp
+++ b/qt-ui/templateedit.cpp
@@ -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();
}