Source

thg-qt-mq / cmddialog-debug.diff

Full commit
# HG changeset patch
# Parent 254b28e32adf92cb31d89c4bb329cb63975fb10b
diff --git a/tortoisehg/hgqt/run.py b/tortoisehg/hgqt/run.py
--- a/tortoisehg/hgqt/run.py
+++ b/tortoisehg/hgqt/run.py
@@ -397,9 +397,6 @@ class _QtRunner(QObject):
             qtlib.setup_font_substitutions()
             self._mainapp.setStyleSheet(qtlib.appstylesheet)
             self._mainapp.setWindowIcon(qtlib.geticon('thg_logo'))
-            dlg = dlgfunc(ui, *args, **opts)
-            if dlg:
-                dlg.show()
         except:
             # Exception before starting eventloop needs to be postponed;
             # otherwise it will be ignored silently.
@@ -407,6 +404,13 @@ class _QtRunner(QObject):
                 raise
             QTimer.singleShot(0, reraise)
 
+        def cmddialog():
+            from tortoisehg.hgqt import cmdui
+            global _dlg
+            _dlg = cmdui.Dialog(['debuginstall'])
+            _dlg.show()
+
+        QTimer.singleShot(0, cmddialog)
         self._mainapp.exec_()
         self._mainapp = None
 
diff --git a/tortoisehg/hgqt/thread.py b/tortoisehg/hgqt/thread.py
--- a/tortoisehg/hgqt/thread.py
+++ b/tortoisehg/hgqt/thread.py
@@ -201,6 +201,8 @@ class CmdThread(QThread):
     def run(self):
         # save thread id in order to terminate by KeyboardInterrupt
         self.thread_id = int(QThread.currentThreadId())
+        import time
+        time.sleep(5)
 
         try:
             for k, v in self.ui.configitems('defaults'):