summaryrefslogtreecommitdiff
path: root/src/projManagement/openProject.py
diff options
context:
space:
mode:
authorrahulp132020-12-14 21:08:43 +0530
committerrahulp132020-12-14 21:08:43 +0530
commit779eac4d604c082442ba9ca72a7c23509a78e5f5 (patch)
tree43831dac148767334754754988a6abc5c4352f9e /src/projManagement/openProject.py
parentb3b25b6f1b6c5202620548cce59985d8b79a495f (diff)
downloadeSim-779eac4d604c082442ba9ca72a7c23509a78e5f5.tar.gz
eSim-779eac4d604c082442ba9ca72a7c23509a78e5f5.tar.bz2
eSim-779eac4d604c082442ba9ca72a7c23509a78e5f5.zip
changed QFileDialog separator and handled crash exception for all input fields
Diffstat (limited to 'src/projManagement/openProject.py')
-rw-r--r--src/projManagement/openProject.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/projManagement/openProject.py b/src/projManagement/openProject.py
index 04944d29..c5bc2dec 100644
--- a/src/projManagement/openProject.py
+++ b/src/projManagement/openProject.py
@@ -16,7 +16,7 @@
# REVISION: Sunday 26 July 2020
# =========================================================================
-from PyQt5 import QtWidgets
+from PyQt5 import QtWidgets, QtCore
from .Validation import Validation
from configuration.Appconfig import Appconfig
import os
@@ -45,8 +45,11 @@ class OpenProjectInfo(QtWidgets.QWidget):
"""
self.obj_Appconfig = Appconfig()
self.openDir = self.obj_Appconfig.default_workspace["workspace"]
- self.projDir = QtWidgets.QFileDialog.getExistingDirectory(
- self, "open", self.openDir)
+ self.projDir = QtCore.QDir.toNativeSeparators(
+ QtWidgets.QFileDialog.getExistingDirectory(
+ self, "open", self.openDir
+ )
+ )
if self.obj_validation.validateOpenproj(self.projDir):
self.obj_Appconfig.current_project['ProjectName'] = str(