Commit d69e86c1 authored by a_sch038's avatar a_sch038

fixed a bug causing the state of sessions not being updated every time something affects it

parent 8f4bcdaa
......@@ -422,7 +422,9 @@ class DefaultActions(QtCore.QObject):
def checkSessionState(self, session, showWarnings):
valid = checkMinimumTrainingRequirements(session=session, parentGui=self._viewManager.sessionController.sessionGui, reportToUser=showWarnings)
if not valid:
if valid:
session.setState(session.getState())
else:
if not session.getState() == State.NOTCONNECTED:
session.setState(State.INVALID)
......
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