527 """ |
527 """ |
528 Protected method used to add the VCS menu to all project browsers. |
528 Protected method used to add the VCS menu to all project browsers. |
529 |
529 |
530 @param mainMenu reference to the menu to be amended |
530 @param mainMenu reference to the menu to be amended |
531 """ |
531 """ |
|
532 if mainMenu is None: |
|
533 return |
|
534 |
532 menu = QMenu(self.tr("Version Control")) |
535 menu = QMenu(self.tr("Version Control")) |
533 |
536 |
534 act = menu.addAction( |
537 act = menu.addAction( |
535 EricPixmapCache.getIcon( |
538 EricPixmapCache.getIcon( |
536 os.path.join("VcsPlugins", "vcsMercurial", "icons", "mercurial.svg") |
539 os.path.join("VcsPlugins", "vcsMercurial", "icons", "mercurial.svg") |