From 54b50392f2519ac7c068e8258ac9823b2a79800d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 16 Sep 2015 11:16:33 -0700 Subject: Printing: minor fixes as suggested by Lubomir Signed-off-by: Dirk Hohndel --- qt-ui/templateedit.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/templateedit.cpp b/qt-ui/templateedit.cpp index 267b67ae5..83830047b 100644 --- a/qt-ui/templateedit.cpp +++ b/qt-ui/templateedit.cpp @@ -131,12 +131,14 @@ void TemplateEdit::saveSettings() QStringList bundledTemplates; bundledTemplates << "Flowlayout.html" << "One Dive.html" << "Six Dives.html" << "Table.html" << "Two Dives.html"; if ((*templateOptions) != newTemplateOptions || grantlee_template.compare(ui->plainTextEdit->toPlainText())) { - QMessageBox msgBox; - QString message = "Do you want to save your changes?"; + QMessageBox msgBox(this); + QString message = tr("Do you want to save your changes?"); bool templateChanged = false; if (grantlee_template.compare(ui->plainTextEdit->toPlainText())) { - if (bundledTemplates.contains(printOptions->p_template) || (printOptions->p_template == "Default.html" && printOptions->type == print_options::STATISTICS)) - message = "You are about to modify a template bundled with Subsurface. Do you want to save your changes?"; + if (bundledTemplates.contains(printOptions->p_template) || (printOptions->p_template == "Default.html" && printOptions->type == print_options::STATISTICS)) { + msgBox.setIcon(QMessageBox::Warning); + message = tr("You are about to modify a template bundled with Subsurface.\n") + message; + } templateChanged = true; } msgBox.setText(message); -- cgit v1.2.3-70-g09d2