Salome HOME
edition d un fichier pytel existant
[modules/hydrosolver.git] / src / salome_hydro / gui_utils.py
index 7684fe68dec6e230625b27b135a6e534ef478279..0879e58249f8fbc5a3430fc6fbce9d33bb8ba7da 100644 (file)
@@ -59,6 +59,7 @@ def get_and_check_selected_file_path():
   attribute contains a valid file path, and return this file path.
   """
   ed = getStudyEditor()
+  if len(salome.sg.getSelected()) == 0 : return None
   sobj = ed.study.FindObjectID(salome.sg.getSelected(0))
   filepath = sobj.GetComment()
   if not os.path.isfile(filepath):