From bddc42c2740e92da873e263e591785713b431e7a Mon Sep 17 00:00:00 2001 From: Teja Sai Charan Bellamkonda Date: Tue, 25 Aug 2026 15:27:53 +0530 Subject: [PATCH] fix: return early if no project directory is open - When clicking open file and cancelling without opening a file, an error was thrown instead of closing silently. - Added a check to verify if a file is opened, returning early if none is selected. --- src/projManagement/openProject.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/projManagement/openProject.py b/src/projManagement/openProject.py index 2977a6b35f..9ff2c478d3 100644 --- a/src/projManagement/openProject.py +++ b/src/projManagement/openProject.py @@ -51,6 +51,10 @@ def body(self): ) ) + if not self.projDir: + self.obj_Appconfig.print_info('No Project opened') + return + if self.obj_validation.validateOpenproj(self.projDir): self.obj_Appconfig.current_project['ProjectName'] = str( self.projDir)