Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 7958d20a authored by Nikita Sirgienko's avatar Nikita Sirgienko

[R, Maxima, Octave, Sage] Fix logical error in "interrupt" function.

parent bccd7fdc
......@@ -94,10 +94,8 @@ void RSession::interrupt()
; //TODO: interrupt the process on windows
#endif
}
expressionQueue().first()->interrupt();
expressionQueue().removeFirst();
foreach (Cantor::Expression* expression, expressionQueue())
expression->setStatus(Cantor::Expression::Done);
foreach (Cantor::Expression* expression, expressionQueue())
expression->setStatus(Cantor::Expression::Interrupted);
expressionQueue().clear();
qDebug()<<"done interrupting";
......
......@@ -260,10 +260,8 @@ void MaximaSession::interrupt()
; //TODO: interrupt the process on windows
#endif
}
expressionQueue().first()->interrupt();
expressionQueue().removeFirst();
foreach (Cantor::Expression* expression, expressionQueue())
expression->setStatus(Cantor::Expression::Done);
foreach (Cantor::Expression* expression, expressionQueue())
expression->setStatus(Cantor::Expression::Interrupted);
expressionQueue().clear();
qDebug()<<"done interrupting";
......
......@@ -202,11 +202,8 @@ void OctaveSession::interrupt()
; //TODO: interrupt the process on windows
#endif
}
expressionQueue().first()->interrupt();
expressionQueue().removeFirst();
foreach (Cantor::Expression* expression, expressionQueue())
expression->setStatus(Cantor::Expression::Done);
expression->setStatus(Cantor::Expression::Interrupted);
expressionQueue().clear();
// Cleanup inner state and call octave prompt printing
......
......@@ -387,10 +387,8 @@ void SageSession::interrupt()
; //TODO: interrupt the process on windows
#endif
}
expressionQueue().first()->interrupt();
expressionQueue().removeFirst();
foreach (Cantor::Expression* expression, expressionQueue())
expression->setStatus(Cantor::Expression::Done);
expression->setStatus(Cantor::Expression::Interrupted);
expressionQueue().clear();
qDebug()<<"done interrupting";
......
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