Added code to reinitialize the project browser context menus upon a change of the project properties.

Mon, 21 Apr 2014 14:49:12 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 21 Apr 2014 14:49:12 +0200
changeset 3522
260420562809
parent 3521
7d17803aab56
child 3527
7221f346b2ae

Added code to reinitialize the project browser context menus upon a change of the project properties.

Project/ProjectBrowser.py file | annotate | diff | comparison | revisions
diff -r 7d17803aab56 -r 260420562809 Project/ProjectBrowser.py
--- a/Project/ProjectBrowser.py	Mon Apr 21 14:32:37 2014 +0200
+++ b/Project/ProjectBrowser.py	Mon Apr 21 14:49:12 2014 +0200
@@ -106,36 +106,48 @@
         self.project.projectOpened.connect(self.psBrowser._projectOpened)
         self.project.newProject.connect(self.psBrowser._newProject)
         self.project.reinitVCS.connect(self.psBrowser._initMenusAndVcs)
+        self.project.projectPropertiesChanged.connect(
+            self.psBrowser._initMenusAndVcs)
         
         # connect the forms browser
         self.project.projectClosed.connect(self.pfBrowser._projectClosed)
         self.project.projectOpened.connect(self.pfBrowser._projectOpened)
         self.project.newProject.connect(self.pfBrowser._newProject)
         self.project.reinitVCS.connect(self.pfBrowser._initMenusAndVcs)
+        self.project.projectPropertiesChanged.connect(
+            self.pfBrowser._initMenusAndVcs)
         
         # connect the resources browser
         self.project.projectClosed.connect(self.prBrowser._projectClosed)
         self.project.projectOpened.connect(self.prBrowser._projectOpened)
         self.project.newProject.connect(self.prBrowser._newProject)
         self.project.reinitVCS.connect(self.prBrowser._initMenusAndVcs)
+        self.project.projectPropertiesChanged.connect(
+            self.prBrowser._initMenusAndVcs)
         
         # connect the translations browser
         self.project.projectClosed.connect(self.ptBrowser._projectClosed)
         self.project.projectOpened.connect(self.ptBrowser._projectOpened)
         self.project.newProject.connect(self.ptBrowser._newProject)
         self.project.reinitVCS.connect(self.ptBrowser._initMenusAndVcs)
+        self.project.projectPropertiesChanged.connect(
+            self.ptBrowser._initMenusAndVcs)
         
         # connect the interfaces (IDL)  browser
         self.project.projectClosed.connect(self.piBrowser._projectClosed)
         self.project.projectOpened.connect(self.piBrowser._projectOpened)
         self.project.newProject.connect(self.piBrowser._newProject)
         self.project.reinitVCS.connect(self.piBrowser._initMenusAndVcs)
+        self.project.projectPropertiesChanged.connect(
+            self.piBrowser._initMenusAndVcs)
         
         # connect the others browser
         self.project.projectClosed.connect(self.poBrowser._projectClosed)
         self.project.projectOpened.connect(self.poBrowser._projectOpened)
         self.project.newProject.connect(self.poBrowser._newProject)
         self.project.reinitVCS.connect(self.poBrowser._initMenusAndVcs)
+        self.project.projectPropertiesChanged.connect(
+            self.poBrowser._initMenusAndVcs)
         
         # add signal connection to ourself
         self.project.projectOpened.connect(self.__projectOpened)

eric ide

mercurial