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

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

eric ide

mercurial