Commits

Steve Borho committed 029b3dc

hginit: fixes for replacing init dialog with commit tool at exit

  • Participants
  • Parent commits 11993bb
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgtk/hginit.py

         shlib.shell_notify([dest])
 
         if self.optrunci.get_active():
+            self.emit_stop_by_name('response')
+            self.emit_stop_by_name('destroy')
+            self.hide()
             os.chdir(dest)
-            from tortoisehg.hgtk.hgtk import gtkrun
             from tortoisehg.hgtk.commit import run as cirun
-            ciui = ui.ui()
-            self.hide()
-            gtkrun(cirun, ciui)
-            return
+            win = cirun(ui.ui())
+            win.display()
+            win.show_all()
+            win.connect('destroy', gtk.main_quit)
         else:
             self.response(gtk.RESPONSE_CLOSE)