mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-22 03:57:45 +00:00
Stop mdlviewer from crashing when selecting a second item
This commit is contained in:
parent
361e911bce
commit
8003571d13
1 changed files with 4 additions and 2 deletions
|
@ -220,8 +220,10 @@ MainWindow::MainWindow(GameData* in_data) : data(*in_data) {
|
||||||
raceCombo = new QComboBox();
|
raceCombo = new QComboBox();
|
||||||
|
|
||||||
connect(raceCombo, qOverload<int>(&QComboBox::currentIndexChanged), [this](int index) {
|
connect(raceCombo, qOverload<int>(&QComboBox::currentIndexChanged), [this](int index) {
|
||||||
currentRace = (Race)index;
|
if(index != -1) {
|
||||||
reloadGearModel();
|
currentRace = (Race) index;
|
||||||
|
reloadGearModel();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
controlLayout->addWidget(raceCombo);
|
controlLayout->addWidget(raceCombo);
|
||||||
|
|
Loading…
Add table
Reference in a new issue