Giter Site home page Giter Site logo

Comments (2)

mortbopet avatar mortbopet commented on June 12, 2024

I can reproduce the error - Hopefully i have time to dive into this this weekend.

from ripes.

giraldeau avatar giraldeau commented on June 12, 2024

I tried to dig into the issue before checking your solution. Yeah, you were right, the auto clock was not stopped on breakpoint hit. As a quick fix I used the ProcessorHandler::stopping() signal. I confirm I tested your fix on the master branch and it is working just fine. Cheers!

diff --git a/src/processortab.cpp b/src/processortab.cpp
index a807966..f3d1474 100644
--- a/src/processortab.cpp
+++ b/src/processortab.cpp
@@ -232,6 +232,12 @@ void ProcessorTab::setupSimulatorActions(QToolBar *controlToolbar) {
   connect(m_autoClockTimer, &QTimer::timeout, this,
           [=] { ProcessorHandler::clock(); });
 
+  connect(ProcessorHandler::get(), &ProcessorHandler::stopping, [=]() {
+    if (m_autoClockTimer->isActive()) {
+      autoClock(false);
+    }
+  });
+
   const QIcon startAutoClockIcon = QIcon(":/icons/step-clock.svg");
   m_autoClockAction = new QAction(startAutoClockIcon, "Auto clock (F6)", this);
   m_autoClockAction->setShortcut(QKeySequence("F6"));

from ripes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.