]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
PN pas d erreur si on clique sans avoir de JDC actif sur le rapport ou le source
authorPascale Noyret <pascale.noyret@edf.fr>
Fri, 9 Nov 2007 16:04:34 +0000 (16:04 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Fri, 9 Nov 2007 16:04:34 +0000 (16:04 +0000)
InterfaceQT/viewManager.py

index 29c8b0e8e4f1460a22794498ff9e073da5cc2ada..62133da5c5a14cd2760c89656b83a2cfa45f4152 100644 (file)
@@ -1064,7 +1064,7 @@ class ViewManager:
         self.connect(editor, PYSIGNAL('modificationStatusChanged'),
             self.handleModificationStatusChanged)
         self.connect(editor, PYSIGNAL('cursorChanged'), self.handleCursorChanged)
-        self.connect(editor, PYSIGNAL('editorSaved'), self.handleEditorSaved)
+        self.connect(editor, PYSIGNAL('editorSaved'),   self.handleEditorSaved)
         self.connect(editor, PYSIGNAL('breakpointToggled'), self.handleBreakpointToggled)
         self.connect(editor, PYSIGNAL('bookmarkToggled'), self.handleBookmarkToggled)
         self.connect(editor, PYSIGNAL('syntaxerrorToggled'), self.handleSyntaxErrorToggled)
@@ -1128,9 +1128,11 @@ class ViewManager:
         
         
     def handleViewJdcFichierSource(self):
+        if self.activeWindow()== None : return
         self.activeWindow().viewJdcSource()
                 
     def handleViewJdcRapport(self):
+        if self.activeWindow()== None : return
         self.activeWindow().viewJdcRapport()
         
     def handleNewProject(self):