From 321fc3e1ee2c2ee47075da96371c83e5459cba5e Mon Sep 17 00:00:00 2001 From: Srivats P Date: Thu, 24 Mar 2016 18:52:48 +0530 Subject: [PATCH] Device Emulation (contd.): DeviceGroupDialog uses same defaults for VLAN config as the .proto --- client/devicegroupdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/devicegroupdialog.cpp b/client/devicegroupdialog.cpp index 7c66acf..f5b7f2b 100644 --- a/client/devicegroupdialog.cpp +++ b/client/devicegroupdialog.cpp @@ -70,10 +70,11 @@ DeviceGroupDialog::DeviceGroupDialog( vlans->setColumnCount(kVlanColumns); vlans->setHorizontalHeaderLabels(vlanTableColumnHeaders); for (int i = 0; i < kMaxVlanTags; i++) { + // Use same default values as defined in .proto vlans->setItem(i, kVlanId, new QTableWidgetItem(QString::number(100*(i+1)))); vlans->setItem(i, kVlanCount, - new QTableWidgetItem(QString::number(10))); + new QTableWidgetItem(QString::number(1))); vlans->setItem(i, kVlanStep, new QTableWidgetItem(QString::number(1))); vlans->setItem(i, kVlanCfi,