forked from osmocom/wireshark
Qt: move declaration inside ifdef.
Variable col is unused if compiled without extcap. Change-Id: Iffc4951d4655e2649ecf350eefb09988370277e6 Reviewed-on: https://code.wireshark.org/review/18680 Reviewed-by: Roland Knall <rknall@gmail.com> Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
d7ef9461d3
commit
5ba5727ed8
|
@ -356,8 +356,8 @@ bool InterfaceTreeCacheModel::isAllowedToBeEdited(const QModelIndex &index) cons
|
|||
if ( device == 0 )
|
||||
return false;
|
||||
|
||||
InterfaceTreeColumns col = (InterfaceTreeColumns) index.column();
|
||||
#ifdef HAVE_EXTCAP
|
||||
InterfaceTreeColumns col = (InterfaceTreeColumns) index.column();
|
||||
if ( device->if_info.type == IF_EXTCAP )
|
||||
{
|
||||
/* extcap interfaces do not have those settings */
|
||||
|
|
Loading…
Reference in New Issue