summaryrefslogtreecommitdiff
path: root/ui/qt/uat_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-08-21 17:12:39 -0700
committerGerald Combs <gerald@wireshark.org>2015-08-22 01:51:04 +0000
commitee80be6dac02979bc10b7c1ccc8735525a983f63 (patch)
tree6958bf9fda0fca462da8e1b316ebbc46bcae78fd /ui/qt/uat_dialog.cpp
parent97014f6d6b1b3994f44421fc28ed2c151977f6a0 (diff)
downloadwireshark-ee80be6dac02979bc10b7c1ccc8735525a983f63.tar.gz
Add the display filter macros dialog.
Add some missing functionality to UatDialog. Remove what appears to be unused dfilter macro code. Change-Id: I8a8d6358523f24d5ddfe953d7741fe9af25d98eb Reviewed-on: https://code.wireshark.org/review/10187 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/uat_dialog.cpp')
-rw-r--r--ui/qt/uat_dialog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/qt/uat_dialog.cpp b/ui/qt/uat_dialog.cpp
index 76fbc6b614..e2a6e957fe 100644
--- a/ui/qt/uat_dialog.cpp
+++ b/ui/qt/uat_dialog.cpp
@@ -417,6 +417,13 @@ void UatDialog::stringPrefTextChanged(const QString &text)
uat_update_record(uat_, rec, FALSE);
}
}
+ if (uat_->update_cb) {
+ gchar *err;
+ if (!uat_->update_cb(rec, &err)) {
+ g_free(err); // XXX Handle this.
+ }
+ }
+
ok_button_->setEnabled(enable_ok);
cur_line_edit_->setSyntaxState(ss);