aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-16 11:16:33 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-16 21:32:22 -0700
commit54b50392f2519ac7c068e8258ac9823b2a79800d (patch)
treead9da30369f397212d7532aed945251cecf18111
parentf800c602d61f02379b4639fdb085c0fb4ad18a9a (diff)
downloadsubsurface-54b50392f2519ac7c068e8258ac9823b2a79800d.tar.gz
Printing: minor fixes as suggested by Lubomir
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/templateedit.cpp10
1 files changed, 6 insertions, 4 deletions
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);