Skip to content

Commit

Permalink
fix issue #389
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Jan 23, 2021
1 parent c69f05d commit 7e90586
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,18 @@ bool MainWindow::loadDataFromFile(const FileLoadInfo& info)
tr("Cannot read files with extension %1.\n No plugin can handle that!\n").arg(info.filename));
}
_curvelist_widget->updateFilter();

// clean the custom plot. Function updateDataAndReplot will update them
for (auto& custom_it : _custom_plots)
{
auto dst_data_it = _mapped_plot_data.numeric.find( custom_it.first );
if (dst_data_it != _mapped_plot_data.numeric.end())
{
dst_data_it->second.clear();
}
custom_it.second->clear();
}

updateDataAndReplot(true);
ui->timeSlider->setRealValue(ui->timeSlider->getMinimum());

Expand Down

0 comments on commit 7e90586

Please sign in to comment.