From 81488ee81e57f974f6dc086d87a32e80edf1b452 2015-12-07 16:41:54 From: Ivan Valdez Date: 2015-12-07 16:41:54 Subject: [PATCH] GUI: Bug fixed opening schain project. Error when any file was selected --- diff --git a/schainpy/gui/viewcontroller/basicwindow.py b/schainpy/gui/viewcontroller/basicwindow.py index 90ab094..3f5dca8 100644 --- a/schainpy/gui/viewcontroller/basicwindow.py +++ b/schainpy/gui/viewcontroller/basicwindow.py @@ -4607,9 +4607,7 @@ class BasicWindow(QMainWindow, Ui_BasicWindow): projectObjLoad = Project() - try: - projectObjLoad.readXml(filename) - except: + if not projectObjLoad.readXml(filename): self.console.clear() self.console.append("The selected xml file could not be loaded ...") return 0