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

branch
eric7
changeset 9973
d537cba05d38
parent 9653
e67609152c5e
child 10069
435cc5875135
equal deleted inserted replaced
9972:68ac01294544 9973:d537cba05d38
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