Skip to content

Commit

Permalink
Set filter range end automatically to end of file. (#600)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Wenzel <[email protected]>
  • Loading branch information
alexmucde authored Dec 9, 2024
1 parent fa46493 commit 1ec208b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,8 +1315,8 @@ bool MainWindow::openDltFile(QStringList fileNames)

// clear index filter
ui->checkBoxFilterRange->setChecked(false);
ui->lineEditFilterStart->setText(QString("0"));
ui->lineEditFilterEnd->setText(QString("0"));
//ui->lineEditFilterStart->setText(QString("0"));
//ui->lineEditFilterEnd->setText(QString("%1").arg(qfile.size()));

if (ret)
emit dltFileLoaded(fileNames);
Expand Down Expand Up @@ -2022,6 +2022,12 @@ void MainWindow::reloadLogFileFinishIndex()
statusProgressBar->reset();
statusProgressBar->hide();
}

ui->lineEditFilterStart->setText(QString("0"));
if(qfile.size()>0)
ui->lineEditFilterEnd->setText(QString("%1").arg(qfile.size()-1));
else
ui->lineEditFilterEnd->setText(QString("0"));
}

void MainWindow::reloadLogFileFinishFilter()
Expand Down

0 comments on commit 1ec208b

Please sign in to comment.