summaryrefslogtreecommitdiff
path: root/ui/qt/interface_tree_model.cpp
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-10-04 10:52:50 +0200
committerDario Lombardo <lomato@gmail.com>2016-10-04 09:59:11 +0000
commitc8143e2077832c83ee2c03302d2319d5be948722 (patch)
tree2623d7e4a545f03eb9ecc73e4488df0265ecd22e /ui/qt/interface_tree_model.cpp
parentd8fdf5454a457abe0109ad5615d5d4c4bfca4222 (diff)
downloadwireshark-c8143e2077832c83ee2c03302d2319d5be948722.tar.gz
Qt: add condition to compile without extcap.
Change-Id: Ieabccb5dfc7884bebf9f2b68caaa16a82609bd30 Reviewed-on: https://code.wireshark.org/review/18060 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'ui/qt/interface_tree_model.cpp')
-rw-r--r--ui/qt/interface_tree_model.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/interface_tree_model.cpp b/ui/qt/interface_tree_model.cpp
index 2841cb372f..9fa3910d7f 100644
--- a/ui/qt/interface_tree_model.cpp
+++ b/ui/qt/interface_tree_model.cpp
@@ -136,10 +136,12 @@ QVariant InterfaceTreeModel::data(const QModelIndex &index, int role) const
{
return QString(device.name);
}
+#ifdef HAVE_EXTCAP
else if ( col == IFTREE_COL_EXTCAP_PATH )
{
return QString(device.if_info.extcap);
}
+#endif
else if ( col == IFTREE_COL_HIDDEN )
{
return QVariant::fromValue((bool)device.hidden);