539 """ |
539 """ |
540 Protected method used to add the VCS menu to all project browsers. |
540 Protected method used to add the VCS menu to all project browsers. |
541 |
541 |
542 @param mainMenu reference to the menu to be amended |
542 @param mainMenu reference to the menu to be amended |
543 """ |
543 """ |
|
544 if mainMenu is None: |
|
545 return |
|
546 |
544 menu = QMenu(self.tr("Version Control")) |
547 menu = QMenu(self.tr("Version Control")) |
545 |
548 |
546 act = menu.addAction( |
549 act = menu.addAction( |
547 EricPixmapCache.getIcon( |
550 EricPixmapCache.getIcon( |
548 os.path.join("VcsPlugins", "vcsSubversion", "icons", "subversion.svg") |
551 os.path.join("VcsPlugins", "vcsSubversion", "icons", "subversion.svg") |