diff options
author | Irene Ruengeler <ruengeler@wireshark.org> | 2014-06-12 09:22:01 +0200 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-06-14 13:27:10 +0000 |
commit | e14357032f38416a733596d3f003d51710eb1e52 (patch) | |
tree | cdd1e0c6182e908e5335630747aeec1de7c2bdc2 /ui/qt/capture_interfaces_dialog.cpp | |
parent | 30480da87a5032f61a19e30867a31392b92911be (diff) | |
download | wireshark-e14357032f38416a733596d3f003d51710eb1e52.tar.gz |
Define INET6 for all platforms.
Show the addresses as a tooltip in capture interfaces.
Change-Id: I911784e09ed9479229a7d6f8a7f1476e2e1e6224
Reviewed-on: https://code.wireshark.org/review/2155
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'ui/qt/capture_interfaces_dialog.cpp')
-rw-r--r-- | ui/qt/capture_interfaces_dialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/capture_interfaces_dialog.cpp b/ui/qt/capture_interfaces_dialog.cpp index 14df410b3b..5cc02e8c04 100644 --- a/ui/qt/capture_interfaces_dialog.cpp +++ b/ui/qt/capture_interfaces_dialog.cpp @@ -299,6 +299,10 @@ void CaptureInterfacesDialog::UpdateInterfaces() ui->tbInterfaces->setItemDelegateForColumn(INTERFACE, &combobox_item_delegate_); output = QString(device.display_name); ui->tbInterfaces->setItem(ui->tbInterfaces->rowCount()-1, INTERFACE, new QTableWidgetItem(output)); + if (strcmp(device.addresses,"")) + ui->tbInterfaces->item(ui->tbInterfaces->rowCount()-1, INTERFACE)->setToolTip(tr("Addresses:\n%1").arg(device.addresses)); + else + ui->tbInterfaces->item(ui->tbInterfaces->rowCount()-1, INTERFACE)->setToolTip(tr("no address")); linkname = NULL; if(capture_dev_user_linktype_find(device.name) != -1) { |