delete image viewer window when loading new file

This commit is contained in:
Axel Kohlmeyer
2023-09-06 00:28:05 -04:00
parent 2c0ff19528
commit 17aa458c26

View File

@ -636,6 +636,10 @@ void LammpsGui::open_file(const QString &fileName)
slideshow = nullptr;
}
update_variables();
if (imagewindow) {
delete imagewindow;
imagewindow = nullptr;
}
lammps.close();
}