421 """ |
421 """ |
422 Protected method used to add the VCS menu to all project browsers. |
422 Protected method used to add the VCS menu to all project browsers. |
423 |
423 |
424 @param mainMenu reference to the menu to be amended |
424 @param mainMenu reference to the menu to be amended |
425 """ |
425 """ |
|
426 if mainMenu is None: |
|
427 return |
|
428 |
426 menu = QMenu(self.tr("Version Control")) |
429 menu = QMenu(self.tr("Version Control")) |
427 |
430 |
428 act = menu.addAction( |
431 act = menu.addAction( |
429 EricPixmapCache.getIcon( |
432 EricPixmapCache.getIcon( |
430 os.path.join("VcsPlugins", "vcsGit", "icons", "git.svg") |
433 os.path.join("VcsPlugins", "vcsGit", "icons", "git.svg") |