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

branch
eric7-maintenance
changeset 9974
c2ae0dd2021a
parent 9653
e67609152c5e
child 10069
435cc5875135
equal deleted inserted replaced
9968:115b0106012e 9974:c2ae0dd2021a
539 """ 539 """
540 Protected method used to add the VCS menu to all project browsers. 540 Protected method used to add the VCS menu to all project browsers.
541 541
542 @param mainMenu reference to the menu to be amended 542 @param mainMenu reference to the menu to be amended
543 """ 543 """
544 if mainMenu is None:
545 return
546
544 menu = QMenu(self.tr("Version Control")) 547 menu = QMenu(self.tr("Version Control"))
545 548
546 act = menu.addAction( 549 act = menu.addAction(
547 EricPixmapCache.getIcon( 550 EricPixmapCache.getIcon(
548 os.path.join("VcsPlugins", "vcsSubversion", "icons", "subversion.svg") 551 os.path.join("VcsPlugins", "vcsSubversion", "icons", "subversion.svg")

eric ide

mercurial