From 6e3a4995e51141cfb6681fee2a2aca70020f96c9 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Tue, 17 Mar 2020 21:24:45 -0400 Subject: [PATCH] Fix some bugs in bisect window --- bisectwindow.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bisectwindow.cpp b/bisectwindow.cpp index 99a27ca..d86fc3c 100644 --- a/bisectwindow.cpp +++ b/bisectwindow.cpp @@ -64,6 +64,9 @@ bool BisectWindow::eventFilter(QObject *obj, QEvent *event) void BisectWindow::refreshIDList() { int id; + foundID.clear(); + ui->cbIDLower->clear(); + ui->cbIDUpper->clear(); for (int i = 0; i < modelFrames->count(); i++) { id = modelFrames->at(i).frameId(); @@ -137,7 +140,12 @@ void BisectWindow::handleCalculateButton() void BisectWindow::handleReplaceButton() { - + CANFrameModel *model; + model = MainWindow::getReference()->getCANFrameModel(); + model->clearFrames(); + model->insertFrames(splitFrames); + refreshFrameNumbers(); + refreshIDList(); } void BisectWindow::handleSaveButton()