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

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