From efec9833774c8a8b3ad8dd36447881e6123fa8b7 Mon Sep 17 00:00:00 2001 From: Eyantra698Sumanto Date: Wed, 25 Aug 2021 18:19:04 +0530 Subject: Fixed Crash on .cir.out not found --- src/frontEnd/DockArea.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/frontEnd/DockArea.py') diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py index b96c468a..a446b833 100644 --- a/src/frontEnd/DockArea.py +++ b/src/frontEnd/DockArea.py @@ -122,7 +122,9 @@ class DockArea(QtWidgets.QMainWindow): self.projName = os.path.basename(self.projDir) self.ngspiceNetlist = os.path.join( self.projDir, self.projName + ".cir.out") - + # Edited by Sumanto Kar 25/08/2021 + if os.path.isfile(self.ngspiceNetlist) is False: + return False global count self.ngspiceWidget = QtWidgets.QWidget() @@ -322,3 +324,4 @@ class DockArea(QtWidgets.QMainWindow): self.temp = self.obj_appconfig.current_project['ProjectName'] for dockwidget in self.obj_appconfig.dock_dict[self.temp]: dockwidget.close() + -- cgit