forked from osmocom/wireshark
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>
This commit is contained in:
parent
41c4cd81a5
commit
88868c9ac6
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue