summaryrefslogtreecommitdiff
path: root/quacker/quacker.cpp
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-08-21 14:32:29 -0400
committerpommicket <pommicket@gmail.com>2025-08-21 14:32:29 -0400
commit4702e6bb96ed5f943039956224b8a5e28d862c75 (patch)
tree1d4542d55cc6114c54f3c9b94a7b3166785c2162 /quacker/quacker.cpp
parentfe37762ef767818eb7edfb8de4e64bc638b3db5b (diff)
Fix bug with Macondo simulate
Diffstat (limited to 'quacker/quacker.cpp')
-rw-r--r--quacker/quacker.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/quacker/quacker.cpp b/quacker/quacker.cpp
index cf1b4c7..c15b826 100644
--- a/quacker/quacker.cpp
+++ b/quacker/quacker.cpp
@@ -1063,11 +1063,10 @@ void TopLevel::simulate(bool startSimulation)
// it's not so useful to have sim control show/hide
// like this
//m_simulatorWidget->setVisible(startSimulation);
- if (m_macondo->useForSimulation()) {
- m_macondo->simulate();
- }
if (startSimulation)
{
+ if (m_macondo->useForSimulation())
+ m_macondo->simulate();
logfileChanged();
incrementSimulation();
}