src/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py

branch
eric7-maintenance
changeset 9974
c2ae0dd2021a
parent 9653
e67609152c5e
child 10069
435cc5875135
equal deleted inserted replaced
9968:115b0106012e 9974:c2ae0dd2021a
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")

eric ide

mercurial