summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEyantra698Sumanto2021-08-25 18:19:04 +0530
committerEyantra698Sumanto2021-08-25 18:19:04 +0530
commitefec9833774c8a8b3ad8dd36447881e6123fa8b7 (patch)
tree43993d7a7a1503a3f5947e83c99c9ce63986591e /src
parent2151c084526e98ad076357f59706829f36946512 (diff)
downloadeSim-efec9833774c8a8b3ad8dd36447881e6123fa8b7.tar.gz
eSim-efec9833774c8a8b3ad8dd36447881e6123fa8b7.tar.bz2
eSim-efec9833774c8a8b3ad8dd36447881e6123fa8b7.zip
Fixed Crash on .cir.out not found
Diffstat (limited to 'src')
-rw-r--r--src/frontEnd/DockArea.py5
1 files changed, 4 insertions, 1 deletions
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()
+