Commit 1ad03bfb authored by Damien Naudet's avatar Damien Naudet
Browse files

Renamed method.

closeAllViews to closeAllDataViews
parent dd2b6513
......@@ -110,7 +110,11 @@ class XsocsGui(Qt.QMainWindow):
self.__setupProject(projectFile=projectH5File)
def __closeAllViews(self):
def __closeAllDataViews(self):
"""
Closes all currently opened views.
:return:
"""
if self.__intensityView:
self.__intensityView.close()
......@@ -130,6 +134,10 @@ class XsocsGui(Qt.QMainWindow):
view.deleteLater()
def __createViews(self):
"""
:return:
"""
tree = ProjectTree()
tree.setShowUniqueGroup(False)
tree.sigDelegateEvent.connect(self.__viewEvent)
......@@ -362,7 +370,7 @@ class XsocsGui(Qt.QMainWindow):
else:
dialog.deleteLater()
return
self.__closeAllViews()
self.__closeAllDataViews()
self.__setupProject(projectFile)
def __createProject(self):
......
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