modify bug
This commit is contained in:
parent
dbed030a0c
commit
108ac397b6
@ -1181,12 +1181,12 @@
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>是</string>
|
||||
<string>否</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>否</string>
|
||||
<string>是</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
|
||||
@ -210,11 +210,13 @@ void Seismic_monitor::on_pushButton_confirm_clicked() {
|
||||
QMessageBox::information(this, QStringLiteral("提示"), "传感器灵敏度填写错误!");
|
||||
return;
|
||||
}
|
||||
for (int var = 0; var < SLOT_NUM; var ++) {
|
||||
for (int var = 1; var <= SLOT_NUM; var ++) {
|
||||
if(ui->comboBox_relative_number->currentIndex() != 0){
|
||||
std::shared_ptr<CardBase> slot_base_ptr = ConfigMgr::Instance()->GetSlotPtr(var);
|
||||
if(slot_base_ptr == nullptr || slot_base_ptr->card_type_ != kCardVibSingle)
|
||||
continue;
|
||||
if(var == slot_no)
|
||||
continue;
|
||||
qDebug() << "relative_number" << var << slot_base_ptr->relative_number;
|
||||
if(slot_base_ptr->relative_number == ui->comboBox_relative_number->currentIndex() &&
|
||||
slot_base_ptr->card_type_ != kCardSpeedSingle ){
|
||||
|
||||
@ -438,11 +438,13 @@ void Tachometer::on_pushButton_confirm_clicked() {
|
||||
qCritical() << " should not be here";
|
||||
return;
|
||||
}
|
||||
for (int var = 0; var < SLOT_NUM; var ++) {
|
||||
for (int var = 1; var < SLOT_NUM; var ++) {
|
||||
if(ui->comboBox_relative_number->currentIndex() != 0){
|
||||
std::shared_ptr<CardBase> slot_base_ptr = ConfigMgr::Instance()->GetSlotPtr(var);
|
||||
if(slot_base_ptr == nullptr || slot_base_ptr->card_type_ != kCardSpeedSingle)
|
||||
continue;
|
||||
if(var == slot_no)
|
||||
continue;
|
||||
qDebug() << "relative_number" << var << slot_base_ptr->relative_number;
|
||||
if(slot_base_ptr->relative_number == ui->comboBox_relative_number->currentIndex() &&
|
||||
slot_base_ptr->card_type_ != kCardVibSingle){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user