mnelab
mnelab copied to clipboard
When a plot window is open don't allow to close the data
Currently, users can close an open data set even when the plot window is open. Upon closing the plot window, MNELAB crashes because the data set has been closed.
Similar as in #65 MNELAB doesn't crash for the current version on Ubuntu 18.04.
This time I still do get an error:
Traceback (most recent call last):
File "/Users/clemens/Repositories/mnelab/mnelab/mainwindow.py", line 938, in eventFilter
bads = self.model.current["data"].info["bads"]
TypeError: 'NoneType' object is not subscriptable