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