diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-02-02 09:01:29 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-07-16 00:30:14 +0000 |
commit | d2acb04b4cadd90bf09bdc4959e6bffb25dcfd38 (patch) | |
tree | 44079a225b9df1ca5dbb72d58b55ff2112c15cc4 /ui/qt/qt_ui_utils.cpp | |
parent | 2e215db532f408697ba16f2d83524a64cc9e6424 (diff) |
Add the RTP Stream Analysis dialog.
Combine the GTK+ RTP Stream Analysis and RTP Graph Analysis dialogs into
one. Yell at the user less. Disable the Analyze RTP Stream menu item if
we don't have an RTP stream selected.
There are a *lot* of moving parts in this dialog. I've tested with the
few RTP captures I have but it's by no means complete.
"To do" items are listed at the top of rtp_analysis.cpp.
Change-Id: Id503977f069bebc46cc68bc749f0c9cbf4d37bf6
Reviewed-on: https://code.wireshark.org/review/9650
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/qt_ui_utils.cpp')
-rw-r--r-- | ui/qt/qt_ui_utils.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/qt/qt_ui_utils.cpp b/ui/qt/qt_ui_utils.cpp index c1841c9f80..4d131d302e 100644 --- a/ui/qt/qt_ui_utils.cpp +++ b/ui/qt/qt_ui_utils.cpp @@ -66,13 +66,15 @@ QByteArray gstring_free_to_qbytearray(GString *glib_gstring) return qt_ba; } -const QString address_to_qstring(const _address *address) +const QString address_to_qstring(const _address *address, bool enclose) { QString address_qstr = QString(); if (address) { + if (enclose && address->type == AT_IPv6) address_qstr += "["; gchar *address_gchar_p = address_to_str(NULL, address); - address_qstr = address_gchar_p; + address_qstr += address_gchar_p; wmem_free(NULL, address_gchar_p); + if (enclose && address->type == AT_IPv6) address_qstr += "]"; } return address_qstr; } |