Commit 9cc2c77a authored by Remi Perenon's avatar Remi Perenon
Browse files

Merge branch 'hotfix-error_when_closing_gui' into 'release-1.3.x'

Hotfix error when closing gui

See merge request !48
parents cb84004a 19f49635
Pipeline #5425 passed with stages
in 28 minutes and 37 seconds
version 1.3.1
--------------
* FIXED issue #46 There was an error message when closign converter plugins. The error is no more here but the converter still does not close.
version 1.3.0
--------------
* ADDED Neutron Dynamic Total Structure Factor analysis
......
......@@ -151,9 +151,12 @@ class JobPlugin(ComponentPlugin):
PUBLISHER.sendMessage("msg_set_data", message=self)
def on_close(self, event):
self.parent.mgr.ClosePane(self.parent.mgr.GetPane(self))
try:
self.parent.mgr.ClosePane(self.parent.mgr.GetPane(self))
except AttributeError:
# If the job is a converter, the parent has no mgr attribute
pass
class JobFrame(wx.Frame):
def __init__(self, parent, jobType, datakey=None):
......
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