1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Steve Borho  committed b20aced

workbench: add link to online help

  • Participants
  • Parent commits f26f3d3
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/workbench.py

View file
                   icon='utilities-terminal', enabled='repoopen',
                   menu='repository')
 
-        newaction(_("About"), self.on_about, menu='help', icon='help-browser')
+        newaction(_("Help"), self.onHelp, menu='help', icon='help-browser')
+        newaction(_("About"), self.onAbout, menu='help', icon='thg-logo')
 
         newseparator(toolbar='edit')
         self.actionBack = \
             if rw.repo.root == root:
                 yield rw
 
-    def on_about(self, *args):
+    def onAbout(self, *args):
         """ Display about dialog """
         from tortoisehg.hgqt.about import AboutDialog
         ad = AboutDialog(self)
         ad.finished.connect(ad.deleteLater)
         ad.exec_()
 
+    def onHelp(self, *args):
+        """ Display online help """
+        qtlib.openhelpcontents('workbench.html')
+
     def storeSettings(self):
         s = QSettings()
         wb = "Workbench/"