aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2016-10-26 14:18:30 +0200
committerPeter Wu <peter@lekensteyn.nl>2016-10-26 12:38:26 +0000
commit88868c9ac6f35fca5ee48b4c8f7e921f1b62576b (patch)
tree0d186ed26a602c01637271996c37ebbc148c2fe1 /ui/qt
parent41c4cd81a5fdba2b88817c1fa60fc64f6dc1c272 (diff)
qt: fix build without pcap_create
Fixes a build failure on the OS X buildbot which has libpcap disabled. Change-Id: I5564c0e3f2097cb45905bb503f45bb03561bf748 Fixes: v2.3.0rc0-1237-g6eee29b ("InterfaceTreeList: Enable all editable columns") Reviewed-on: https://code.wireshark.org/review/18472 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Tested-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/interface_tree_cache_model.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/qt/interface_tree_cache_model.cpp b/ui/qt/interface_tree_cache_model.cpp
index 206da612a6..842697204b 100644
--- a/ui/qt/interface_tree_cache_model.cpp
+++ b/ui/qt/interface_tree_cache_model.cpp
@@ -45,7 +45,10 @@ InterfaceTreeCacheModel::InterfaceTreeCacheModel(QObject *parent) :
QIdentityProxyModel::setSourceModel(sourceModel);
storage = new QMap<int, QMap<InterfaceTreeColumns, QVariant> *>();
- checkableColumns << IFTREE_COL_HIDDEN << IFTREE_COL_PROMISCUOUSMODE << IFTREE_COL_MONITOR_MODE;
+ checkableColumns << IFTREE_COL_HIDDEN << IFTREE_COL_PROMISCUOUSMODE;
+#ifdef HAVE_PCAP_CREATE
+ checkableColumns << IFTREE_COL_MONITOR_MODE;
+#endif
editableColumns << IFTREE_COL_INTERFACE_COMMENT << IFTREE_COL_SNAPLEN;