diff options
author | Sumanto Kar | 2023-09-02 22:22:02 +0530 |
---|---|---|
committer | GitHub | 2023-09-02 22:22:02 +0530 |
commit | aa6c71ea1b01601ab0a8765ba450e0640c057ee2 (patch) | |
tree | 2184d248e58ddee05b63f7718500f1d322e1a261 | |
parent | 583043e038a6c4a30352b86e25e88b1bd0e70f64 (diff) | |
download | eSim-2.4.tar.gz eSim-2.4.tar.bz2 eSim-2.4.zip |
Added the Project select warning dialog box for all the featuresv2.4
-rwxr-xr-x | src/frontEnd/DockArea.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py index e8989e34..bf325ff1 100755 --- a/src/frontEnd/DockArea.py +++ b/src/frontEnd/DockArea.py @@ -168,6 +168,18 @@ class DockArea(QtWidgets.QMainWindow): global count projDir = self.obj_appconfig.current_project["ProjectName"] + if projDir is None: + """ when projDir is None that is clicking on subcircuit icon + without any project selection """ + self.msg = QtWidgets.QErrorMessage() + self.msg.setModal(True) + self.msg.setWindowTitle("Error Message") + self.msg.showMessage( + 'Please select the project first.' + ' You can either create new project or open existing project' + ) + self.msg.exec_() + return projName = os.path.basename(projDir) dockName = f'Model Editor-{projName}-' @@ -300,6 +312,18 @@ class DockArea(QtWidgets.QMainWindow): global count projDir = self.obj_appconfig.current_project["ProjectName"] + if projDir is None: + """ when projDir is None that is clicking on subcircuit icon + without any project selection """ + self.msg = QtWidgets.QErrorMessage() + self.msg.setModal(True) + self.msg.setWindowTitle("Error Message") + self.msg.showMessage( + 'Please select the project first.' + ' You can either create new project or open existing project' + ) + self.msg.exec_() + return projName = os.path.basename(projDir) dockName = f'Makerchip-{projName}-' |