From f5c6baa3cff41053886c2b03b414fe82583f9fc5 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Fri, 9 Nov 2007 16:04:34 +0000 Subject: [PATCH] PN pas d erreur si on clique sans avoir de JDC actif sur le rapport ou le source --- InterfaceQT/viewManager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/InterfaceQT/viewManager.py b/InterfaceQT/viewManager.py index 29c8b0e8..62133da5 100644 --- a/InterfaceQT/viewManager.py +++ b/InterfaceQT/viewManager.py @@ -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): -- 2.39.2