mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
Undefined behavior fix
This commit is contained in:
parent
033e7010ca
commit
10d783d8ee
@ -511,6 +511,7 @@ void RewardsWidget::on_removeVisitInfo_clicked()
|
|||||||
delete ui->visitInfoList->currentItem();
|
delete ui->visitInfoList->currentItem();
|
||||||
ui->visitInfoList->blockSignals(false);
|
ui->visitInfoList->blockSignals(false);
|
||||||
on_visitInfoList_itemSelectionChanged();
|
on_visitInfoList_itemSelectionChanged();
|
||||||
|
loadCurrentVisitInfo(ui->visitInfoList->currentRow());
|
||||||
}
|
}
|
||||||
|
|
||||||
void RewardsWidget::on_selectMode_currentIndexChanged(int index)
|
void RewardsWidget::on_selectMode_currentIndexChanged(int index)
|
||||||
@ -534,13 +535,15 @@ void RewardsWidget::on_visitInfoList_itemSelectionChanged()
|
|||||||
}
|
}
|
||||||
|
|
||||||
ui->eventInfoGroup->show();
|
ui->eventInfoGroup->show();
|
||||||
loadCurrentVisitInfo(ui->visitInfoList->currentRow());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RewardsWidget::on_visitInfoList_currentItemChanged(QListWidgetItem * current, QListWidgetItem * previous)
|
void RewardsWidget::on_visitInfoList_currentItemChanged(QListWidgetItem * current, QListWidgetItem * previous)
|
||||||
{
|
{
|
||||||
if(previous)
|
if(previous)
|
||||||
saveCurrentVisitInfo(ui->visitInfoList->row(previous));
|
saveCurrentVisitInfo(ui->visitInfoList->row(previous));
|
||||||
|
|
||||||
|
if(current)
|
||||||
|
loadCurrentVisitInfo(ui->visitInfoList->currentRow());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user