diff options
-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); |