json里没有设备型号就不去获取,避免拖慢运行速度
This commit is contained in:
parent
f98e28b40c
commit
bea0d290d6
|
@ -444,20 +444,23 @@ void Dialog_InputSerialNum::on_pbtn_checkConfig_clicked()
|
|||
int sleepTime = getSleepTime();
|
||||
int vid = getDevVid();
|
||||
int pid = getDevPid();
|
||||
QString deviceModel = getDeviceModel();
|
||||
|
||||
QString item;
|
||||
bool right = true;
|
||||
LPWRITECFG lp = new WRITECFG;
|
||||
|
||||
if (deviceModel_to != deviceModel)
|
||||
if (!deviceModel_to.isEmpty())
|
||||
{
|
||||
item.append(tr("Device model"));
|
||||
item.append(" ");
|
||||
right = false;
|
||||
QString deviceModel = getDeviceModel();
|
||||
if (deviceModel_to != deviceModel)
|
||||
{
|
||||
item.append(tr("Device model"));
|
||||
item.append(" ");
|
||||
right = false;
|
||||
|
||||
QString info = tr("Inconsistent configuration %1detected, please reconfigure, and check again").arg(item);
|
||||
addInteractInfo(info, false);
|
||||
QString info = tr("Inconsistent configuration %1detected, please reconfigure, and check again").arg(item);
|
||||
addInteractInfo(info, false);
|
||||
}
|
||||
}
|
||||
|
||||
if (speedMode_to != speedMode)
|
||||
|
|
Loading…
Reference in New Issue