Commits

Yuya Nishihara  committed d3b8936

init: open workbench via qtrun

  • Participants
  • Parent commits ccfa14f

Comments (0)

Files changed (1)

File tortoisehg/hgqt/hginit.py

                     pass
 
         if self.run_wb_chk.isChecked():
+            # TODO: implement by using signal-slot if possible
             from tortoisehg.hgqt import run
-            try:
-                run.qtrun(run.log, ui.ui(), root=dest)
-            except Exception, e:
-                qtlib.WarningMsgBox(_('Init'),
-                  _('<p>Repository successfully created at</p><p>%s</p>') % dest,
-                  _('<p>But could not run Workbench for it.</p><p>%s</p>')
-                    % hglib.tounicode(str(e)))
+            run.qtrun.showRepoInWorkbench(udest)
         else:
             if not self.parent():
                 qtlib.InfoMsgBox(_('Init'),