aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/capture_interfaces_dialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/capture_interfaces_dialog.cpp b/ui/qt/capture_interfaces_dialog.cpp
index 173faf1269..14df410b3b 100644
--- a/ui/qt/capture_interfaces_dialog.cpp
+++ b/ui/qt/capture_interfaces_dialog.cpp
@@ -600,6 +600,7 @@ QWidget* TbInterfacesDelegate::createEditor( QWidget *parent, const QStyleOption
gint buffer = DEFAULT_CAPTURE_BUFFER_SIZE;
#endif
guint snap = WTAP_MAX_PACKET_SIZE;
+ GList *links = NULL;
if (index.column() > 1) {
interface_t device;
@@ -611,6 +612,7 @@ QWidget* TbInterfacesDelegate::createEditor( QWidget *parent, const QStyleOption
buffer = device.buffer;
#endif
snap = device.snaplen;
+ links = device.links;
if (interface_name.compare(device.display_name) || device.hidden || device.type == IF_PIPE) {
continue;
} else {
@@ -625,7 +627,7 @@ QWidget* TbInterfacesDelegate::createEditor( QWidget *parent, const QStyleOption
GList *list;
link_row *temp;
QComboBox *cb = new QComboBox(parent);
- for (list=device.links; list!=NULL; list=g_list_next(list)) {
+ for (list=links; list!=NULL; list=g_list_next(list)) {
temp = (link_row*)(list->data);
cb->addItem(QString("%1").arg(temp->name));
}