Skip to content

Commit

Permalink
[fix] replay: fix id selection crash
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallois committed Sep 21, 2020
1 parent ab95d46 commit 0ca1c1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Replay::Replay(QWidget* parent, bool standalone) : QMainWindow(parent),

object1Replay = new QComboBox(this);
object1Replay->setEditable(true);
object1Replay->setInsertPolicy(QComboBox::NoInsert);
object1Replay->setStatusTip(tr("First selected object"));
connect(object1Replay, QOverload<int>::of(&QComboBox::currentIndexChanged), [this](int index) {
if (object1Replay->count() != 0) {
Expand All @@ -135,6 +136,7 @@ Replay::Replay(QWidget* parent, bool standalone) : QMainWindow(parent),

object2Replay = new QComboBox(this);
object2Replay->setEditable(true);
object2Replay->setInsertPolicy(QComboBox::NoInsert);
object2Replay->setStatusTip(tr("Second selected object"));
connect(object2Replay, QOverload<int>::of(&QComboBox::currentIndexChanged), [this](int index) {
if (object2Replay->count() != 0) {
Expand Down

0 comments on commit 0ca1c1a

Please sign in to comment.