summaryrefslogtreecommitdiff
path: root/quacker/quacker.cpp
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-08-25 12:59:12 -0400
committerpommicket <pommicket@gmail.com>2025-08-25 12:59:12 -0400
commitab056904fdd65293652d0aefcb68ead73e8f5d8c (patch)
tree901f6f1fcbe7d0f38bce8e04a78a8579c2cf0c21 /quacker/quacker.cpp
parente944e827bb1dbddc8a3a1b15b8da1eb2d6836613 (diff)
Fix old simulator results not being cleared after starting Macondov0.0.4
Diffstat (limited to 'quacker/quacker.cpp')
-rw-r--r--quacker/quacker.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/quacker/quacker.cpp b/quacker/quacker.cpp
index c54e08a..744c33e 100644
--- a/quacker/quacker.cpp
+++ b/quacker/quacker.cpp
@@ -1063,6 +1063,8 @@ void TopLevel::simulate(bool startSimulation)
if (startSimulation)
{
if (m_macondo->useForSimulation()) {
+ // clear Quackle simulator results if it was used before this
+ clearSimulationResults();
if (!m_macondo->simulate()) {
// Macondo failed to start
m_simulateAction->setChecked(false);