Commit 64e2ad55 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed #kumir2-1640

parent 84d5420d
......@@ -53,7 +53,7 @@ void Run::stop()
stoppingFlag_ = true;
if (!isRunning()) {
emit lineChanged(-1, 0u, 0u);
// emit finished();
emit userTerminated();
......@@ -116,7 +116,7 @@ signals:
void resetModule(const QString & pluginName);
void aboutToStop();
void clearMarginRequest(int,int);
void userTerminated(); // acts like QThread::finished()
protected :
void run();
......@@ -60,6 +60,10 @@ KumirRunPlugin::KumirRunPlugin()
connect (pRun_, SIGNAL(output(QString)), this, SIGNAL(outputRequest(QString)));
connect (pRun_, SIGNAL(input(QString)), this, SIGNAL(inputRequest(QString)));
connect (pRun_, SIGNAL(finished()), this, SLOT(handleThreadFinished()));
// The signal userTerminated() has the same effect like QThread::finished()
connect (pRun_, SIGNAL(userTerminated()), this, SLOT(handleThreadFinished()));
connect (pRun_, SIGNAL(lineChanged(int,quint32,quint32)), this, SIGNAL(lineChanged(int,quint32,quint32)));
connect (pRun_, SIGNAL(updateStepsCounter(quint64)), this, SIGNAL(updateStepsCounter(quint64)));
connect (pRun_, SIGNAL(marginText(int,QString)), this, SIGNAL(marginText(int,QString)));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment