Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.1, 2.0.2, and 2.0.3

stable workbench: connect finished signals of clone and init dialogs

I've noticed a few spurios Workbench crashes over the last few weeks and they
always seemed to happen after making new clones.

Changeset c42e6555be5c

Parent e9e5e20fa8ff

by Steve Borho

Changes to one file · Browse files at c42e6555be5c Showing diff from parent e9e5e20fa8ff Diff from another changeset...

 
536
537
538
539
540
541
 
 
 
 
542
543
544
 
550
551
552
553
554
555
 
 
 
 
556
557
558
 
536
537
538
 
 
 
539
540
541
542
543
544
545
 
551
552
553
 
 
 
554
555
556
557
558
559
560
@@ -536,9 +536,10 @@
  path = os.path.dirname(repoWidget.repo.root)   else:   path = os.getcwd() - initdlg = InitDialog([path], parent=self) - if initdlg.exec_(): - path = initdlg.getPath() + dlg = InitDialog([path], parent=self) + dlg.finished.connect(dlg.deleteLater) + if dlg.exec_(): + path = dlg.getPath()   self.openRepo(path)     def cloneRepository(self): @@ -550,9 +551,10 @@
  args = [root, os.path.dirname(root)]   else:   args = [] - clonedlg = CloneDialog(args, parent=self) - if clonedlg.exec_(): - path = clonedlg.getDest() + dlg = CloneDialog(args, parent=self) + dlg.finished.connect(dlg.deleteLater) + if dlg.exec_(): + path = dlg.getDest()   self.openRepo(path)     def openRepository(self):