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:
Dario Lombardo 2016-11-05 19:31:09 +01:00 committed by Michael Mann
parent d7ef9461d3
commit 5ba5727ed8
1 changed files with 1 additions and 1 deletions

View File

@ -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 */