diff options
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/decode_as_dialog.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/qt/decode_as_dialog.cpp b/ui/qt/decode_as_dialog.cpp index 0ba94aa556..a50f90d71a 100644 --- a/ui/qt/decode_as_dialog.cpp +++ b/ui/qt/decode_as_dialog.cpp @@ -27,6 +27,7 @@ #include "epan/epan_dissect.h" #include "ui/decode_as_utils.h" +#include "ui/simple_dialog.h" #include <wsutil/utf8_entities.h> #include "qt_ui_utils.h" @@ -640,8 +641,15 @@ void DecodeAsDialog::on_buttonBox_clicked(QAbstractButton *button) applyChanges(); break; case QDialogButtonBox::Save: + { + gchar* err = NULL; + applyChanges(); - save_decode_as_entries(); + if (save_decode_as_entries(&err) < 0) { + simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", err); + g_free(err); + } + } break; case QDialogButtonBox::Help: wsApp->helpTopicAction(HELP_DECODE_AS_SHOW_DIALOG); |