From Thomas ERSFELD (GSoC13)

Hiding monitor column when not available

svn path=/trunk/; revision=53809
This commit is contained in:
Alexis La Goutte 2013-12-06 10:24:58 +00:00
parent f9c27ac0d8
commit d1e904b518
1 changed files with 2 additions and 0 deletions

View File

@ -292,6 +292,8 @@ void CaptureInterfacesDialog::UpdateInterfaces()
#if defined (HAVE_PCAP_CREATE)
output = QString(device.monitor_mode_enabled ? "true" : "false");
ui->tbInterfaces->setItem(ui->tbInterfaces->rowCount()-1, MONITOR, new QTableWidgetItem(output));
#else
ui->tbInterfaces->setColumnHidden(BUFFER+1, true);
#endif
if (strstr(prefs.capture_device, device.name) != NULL) {