Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Nov 19, 2019
1 parent 555b9e0 commit 9f0c9b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Expand Up @@ -352,7 +352,7 @@ bool SimulationSupportPythonWrapper::run(Simulation *pSimulation)
// and, if successful, run our simulation
// Note: we keep track of our focus widget (which might be our Python
// console window), so that we can give the focus back to it once we
// have run our simulation...
// are done running our simulation...

QWidget *focusWidget = QApplication::focusWidget();

Expand All @@ -374,7 +374,7 @@ bool SimulationSupportPythonWrapper::run(Simulation *pSimulation)

QEventLoop waitLoop;

connect(this, &SimulationSupportPythonWrapper::gotElapsedTime,
connect(pSimulation, &Simulation::done,
&waitLoop, &QEventLoop::quit,
Qt::QueuedConnection);

Expand Down Expand Up @@ -599,8 +599,6 @@ void SimulationSupportPythonWrapper::simulationDone(qint64 pElapsedTime)
// Save the given elapsed time and let people know that we have got it

mElapsedTime = pElapsedTime;

emit gotElapsedTime();
}

//==============================================================================
Expand Down
Expand Up @@ -67,9 +67,6 @@ class SimulationSupportPythonWrapper : public QObject
qint64 mElapsedTime = -1;
QString mErrorMessage;

signals:
void gotElapsedTime();

public slots:
bool valid(OpenCOR::SimulationSupport::Simulation *pSimulation);

Expand Down

0 comments on commit 9f0c9b2

Please sign in to comment.