also delete log and chart window when loading a new file

This commit is contained in:
Axel Kohlmeyer
2023-09-07 10:06:11 -04:00
parent 71a6f5b827
commit a1ddf68e5c

View File

@ -635,11 +635,19 @@ void LammpsGui::open_file(const QString &fileName)
delete slideshow; delete slideshow;
slideshow = nullptr; slideshow = nullptr;
} }
update_variables();
if (imagewindow) { if (imagewindow) {
delete imagewindow; delete imagewindow;
imagewindow = nullptr; imagewindow = nullptr;
} }
if (chartwindow) {
delete chartwindow;
chartwindow = nullptr;
}
if (logwindow) {
delete logwindow;
logwindow = nullptr;
}
update_variables();
lammps.close(); lammps.close();
} }