Fix some bugs in bisect window

This commit is contained in:
Collin Kidder
2020-03-17 21:24:45 -04:00
parent 22e5f6dbfb
commit 6e3a4995e5
+9 -1
View File
@@ -64,6 +64,9 @@ bool BisectWindow::eventFilter(QObject *obj, QEvent *event)
void BisectWindow::refreshIDList() void BisectWindow::refreshIDList()
{ {
int id; int id;
foundID.clear();
ui->cbIDLower->clear();
ui->cbIDUpper->clear();
for (int i = 0; i < modelFrames->count(); i++) for (int i = 0; i < modelFrames->count(); i++)
{ {
id = modelFrames->at(i).frameId(); id = modelFrames->at(i).frameId();
@@ -137,7 +140,12 @@ void BisectWindow::handleCalculateButton()
void BisectWindow::handleReplaceButton() void BisectWindow::handleReplaceButton()
{ {
CANFrameModel *model;
model = MainWindow::getReference()->getCANFrameModel();
model->clearFrames();
model->insertFrames(splitFrames);
refreshFrameNumbers();
refreshIDList();
} }
void BisectWindow::handleSaveButton() void BisectWindow::handleSaveButton()