also delete log and chart window when loading a new file
This commit is contained in:
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user