diff options
-rw-r--r-- | desktop-widgets/templateedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/templateedit.cpp b/desktop-widgets/templateedit.cpp index 82b02c324..36af4c994 100644 --- a/desktop-widgets/templateedit.cpp +++ b/desktop-widgets/templateedit.cpp @@ -147,7 +147,7 @@ void TemplateEdit::saveSettings() msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Cancel); msgBox.setDefaultButton(QMessageBox::Cancel); if (msgBox.exec() == QMessageBox::Save) { - memcpy(templateOptions, &newTemplateOptions, sizeof(struct template_options)); + *templateOptions = newTemplateOptions; if (templateChanged) { TemplateLayout::writeTemplate(printOptions->p_template, ui->plainTextEdit->toPlainText()); if (printOptions->type == print_options::DIVELIST) |