diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-10-19 00:25:15 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-18 17:37:49 -0700 |
commit | ff439396a538ade7ab470d4993912da93342e5d1 (patch) | |
tree | 64d78abe82a1f8592f37d1bfc7b245e56650c5b7 /qt-ui | |
parent | 894e7d5d39b8e926d06a10e7eb70300cb93bd374 (diff) | |
download | subsurface-ff439396a538ade7ab470d4993912da93342e5d1.tar.gz |
Print: remove the warning about editing bundled templates
Bundled templates can no longer be edited, because
copies are made in the user directory. The TemplateEdit
special case warning is no longer relevant so it can
be removed.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/templateedit.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/qt-ui/templateedit.cpp b/qt-ui/templateedit.cpp index 83830047b..4964016b9 100644 --- a/qt-ui/templateedit.cpp +++ b/qt-ui/templateedit.cpp @@ -128,19 +128,12 @@ void TemplateEdit::on_colorpalette_currentIndexChanged(int index) 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(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)) { - msgBox.setIcon(QMessageBox::Warning); - message = tr("You are about to modify a template bundled with Subsurface.\n") + message; - } + if (grantlee_template.compare(ui->plainTextEdit->toPlainText())) templateChanged = true; - } msgBox.setText(message); msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Cancel); msgBox.setDefaultButton(QMessageBox::Cancel); |