Qt: declare one_em to fix compile error when HAVE_PCAP_REMOTE is defined

Occured on Windows(10) x64 build.

Change-Id: I04d88bec1660dae20f459d2e03c88864c9366dc3
Reviewed-on: https://code.wireshark.org/review/18315
Reviewed-by: Roland Knall <rknall@gmail.com>
This commit is contained in:
Hessam Jalali 2016-10-19 14:50:09 +03:30 committed by Roland Knall
parent 1d35c7f096
commit 10c46fc308
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ ManageInterfacesDialog::ManageInterfacesDialog(QWidget *parent) :
#if defined(HAVE_PCAP_REMOTE)
// The default indentation (20) means our checkboxes are shifted too far on Windows.
// Assume that our disclosure and checkbox controls are square, or at least fit within an em.
int one_em = fontMetrics().height();
ui->remoteList->setIndentation(one_em);
ui->remoteList->setColumnWidth(col_r_show_, one_em * 4);
ui->remoteSettings->setEnabled(false);