Source

thg-qt-mq / trynewwindow.diff

Full commit
# HG changeset patch
# Parent 2a844593c79d971d4d8af448e222bae33ecc906f
diff --git a/tortoisehg/hgqt/repowidget.py b/tortoisehg/hgqt/repowidget.py
--- a/tortoisehg/hgqt/repowidget.py
+++ b/tortoisehg/hgqt/repowidget.py
@@ -1600,6 +1600,7 @@ class RepoWidget(QWidget):
 
     def updateToRevision(self):
         dlg = update.UpdateDialog(self.repo, self.rev, self)
+        dlg.setWindowModality(Qt.WindowModal)
         dlg.output.connect(self.output)
         dlg.makeLogVisible.connect(self.makeLogVisible)
         dlg.progress.connect(self.progress)
diff --git a/tortoisehg/hgqt/workbench.py b/tortoisehg/hgqt/workbench.py
--- a/tortoisehg/hgqt/workbench.py
+++ b/tortoisehg/hgqt/workbench.py
@@ -763,7 +763,9 @@ class Workbench(QMainWindow):
             w.repoview.goto(rev)
 
     def newWorkbench(self):
-        portable_start_fork()
+        from tortoisehg.hgqt import run as runmod
+        runmod.qtrun(Workbench, self.ui)
+        #portable_start_fork()
 
     def newRepository(self):
         """ Run init dialog """