File tree Expand file tree Collapse file tree 2 files changed +204
-181
lines changed Expand file tree Collapse file tree 2 files changed +204
-181
lines changed Original file line number Diff line number Diff line change @@ -1408,9 +1408,6 @@ void MainWindow::on_lineEditCustomParsingRules_editingFinished()
1408
1408
1409
1409
void MainWindow::on_spinBoxMaxGraphs_valueChanged (int arg1)
1410
1410
{
1411
- while (ui->widgetChart ->graphCount () > arg1)
1412
- ui->widgetChart ->removeGraph (ui->widgetChart ->graph ());
1413
-
1414
1411
QPalette *paletteRed = new QPalette ();
1415
1412
QPalette *paletteBlack = new QPalette ();
1416
1413
paletteRed->setColor (QPalette::Text, Qt::GlobalColor::red);
@@ -1421,7 +1418,8 @@ void MainWindow::on_spinBoxMaxGraphs_valueChanged(int arg1)
1421
1418
else
1422
1419
ui->spinBoxMaxGraphs ->setPalette (*paletteBlack);
1423
1420
1424
- loadFromRAM (false );
1421
+ this ->clearGraphs (false );
1422
+ this ->loadFromRAM (false );
1425
1423
1426
1424
ui->widgetChart ->replot ();
1427
1425
}
You can’t perform that action at this time.
0 commit comments